Skip to content

Commit b0cf98a

Browse files
Zheaoliashm-dev
andauthored
Update Lib/test/test_pty.py
Co-authored-by: Shamil <[email protected]>
1 parent 1d89309 commit b0cf98a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_pty.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def test_fork(self):
233233
else:
234234
flags = fcntl.fcntl(master_fd, fcntl.F_GETFD)
235235
cloexec_set = bool(flags & fcntl.FD_CLOEXEC)
236-
self.assertEqual(cloexec_set, True)
236+
flags = fcntl.fcntl(master_fd, fcntl.F_GETFD)
237+
self.assertTrue(flags & fcntl.FD_CLOEXEC)
237238
debug("Waiting for child (%d) to finish." % pid)
238239
# In verbose mode, we have to consume the debug output from the
239240
# child or the child will block, causing this test to hang in the

0 commit comments

Comments
 (0)