8000 bpo-37964: Make sure test works if TESTFN is in a non-ASCII directory. by benjaminp · Pull Request #15568 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37964: Make sure test works if TESTFN is in a non-ASCII directory. #15568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Lib/test/test_fcntl.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def test_flock_overflow(self):
@unittest.skipIf(sys.platform != 'darwin', "F_GETPATH is only available on macos")
def test_fcntl_f_getpath(self):
self.f = open(TESTFN, 'wb')
abspath = os.path.abspath(TESTFN)
res = fcntl.fcntl(self.f.fileno(), fcntl.F_GETPATH, bytes(len(abspath)))
self.assertEqual(abspath, res.decode('utf-8'))
expected = os.path.abspath(TESTFN).encode('utf-8')
res = fcntl.fcntl(self.f.fileno(), fcntl.F_GETPATH, bytes(len(expected)))
self.assertEqual(expected, res)

def test_main():
run_unittest(TestFcntl)
Expand Down
0