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 b0caf32 commit 465e5d5Copy full SHA for 465e5d5
Lib/test/test_fcntl.py
@@ -147,9 +147,9 @@ def test_flock_overflow(self):
147
@unittest.skipIf(sys.platform != 'darwin', "F_GETPATH is only available on macos")
148
def test_fcntl_f_getpath(self):
149
self.f = open(TESTFN, 'wb')
150
- abspath = os.path.abspath(TESTFN)
151
- res = fcntl.fcntl(self.f.fileno(), fcntl.F_GETPATH, bytes(len(abspath)))
152
- 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)
153
154
def test_main():
155
run_unittest(TestFcntl)
0 commit comments