(path)
| 709 | |
| 710 | def test_fspath_support(self): |
| 711 | def check_path_succeeds(path): |
| 712 | with self.open(path, "w", encoding="utf-8") as f: |
| 713 | f.write("egg\n") |
| 714 | |
| 715 | with self.open(path, "r", encoding="utf-8") as f: |
| 716 | self.assertEqual(f.read(), "egg\n") |
| 717 | |
| 718 | check_path_succeeds(FakePath(os_helper.TESTFN)) |
| 719 | check_path_succeeds(FakePath(os.fsencode(os_helper.TESTFN))) |
nothing calls this directly
no test coverage detected