Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 855e688 commit 67987acCopy full SHA for 67987ac
1 file changed
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