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 1d89309 commit b0cf98aCopy full SHA for b0cf98a
Lib/test/test_pty.py
@@ -233,7 +233,8 @@ def test_fork(self):
233
else:
234
flags = fcntl.fcntl(master_fd, fcntl.F_GETFD)
235
cloexec_set = bool(flags & fcntl.FD_CLOEXEC)
236
- self.assertEqual(cloexec_set, True)
+ flags = fcntl.fcntl(master_fd, fcntl.F_GETFD)
237
+ self.assertTrue(flags & fcntl.FD_CLOEXEC)
238
debug("Waiting for child (%d) to finish." % pid)
239
# In verbose mode, we have to consume the debug output from the
240
# child or the child will block, causing this test to hang in the
0 commit comments