(self)
| 318 | self._check_str(os.fspath(p), ('a/b',)) |
| 319 | |
| 320 | def test_bytes(self): |
| 321 | P = self.cls |
| 322 | with self.assertRaises(TypeError): |
| 323 | P(b'a') |
| 324 | with self.assertRaises(TypeError): |
| 325 | P(b'a', 'b') |
| 326 | with self.assertRaises(TypeError): |
| 327 | P('a', b'b') |
| 328 | with self.assertRaises(TypeError): |
| 329 | P('a').joinpath(b'b') |
| 330 | with self.assertRaises(TypeError): |
| 331 | P('a') / b'b' |
| 332 | with self.assertRaises(TypeError): |
| 333 | b'a' / P('b') |
| 334 | with self.assertRaises(TypeError): |
| 335 | P('a').match(b'b') |
| 336 | with self.assertRaises(TypeError): |
| 337 | P('a').relative_to(b'b') |
| 338 | with self.assertRaises(TypeError): |
| 339 | P('a').with_name(b'b') |
| 340 | with self.assertRaises(TypeError): |
| 341 | P('a').with_stem(b'b') |
| 342 | with self.assertRaises(TypeError): |
| 343 | P('a').with_suffix(b'b') |
| 344 | |
| 345 | def test_bytes_exc_message(self): |
| 346 | P = self.cls |
nothing calls this directly
no test coverage detected