We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 855e688 commit 67987acCopy full SHA for 67987ac
Lib/test/test_io.py
@@ -928,7 +928,7 @@ def check_path_succeeds(path):
928
self.assertEqual(f.read(), "egg\n")
929
930
check_path_succeeds(FakePath(os_helper.TESTFN))
931
- check_path_succeeds(FakePath(os_helper.TESTFN.encode('utf-8')))
+ check_path_succeeds(FakePath(os.fsencode(os_helper.TESTFN)))
932
933
with self.open(os_helper.TESTFN, "w") as f:
934
bad_path = FakePath(f.fileno())
0 commit comments