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 46e604d commit 23ea074Copy full SHA for 23ea074
1 file changed
Lib/test/test_os/test_posix.py
@@ -1625,6 +1625,11 @@ def test_pidfd_getfd(self):
1625
os.pidfd_getfd(-1, 0)
1626
self.assertEqual(cm.exception.errno, errno.EBADF)
1627
1628
+ with self.assertRaises(OSError) as cm:
1629
+ bad_fd = os_helper.make_bad_fd()
1630
+ os.pidfd_getfd(pidfd, bad_fd)
1631
+ self.assertEqual(cm.exception.errno, errno.EBADF)
1632
+
1633
@os_helper.skip_unless_hardlink
1634
@os_helper.skip_unless_symlink
1635
def test_link_follow_symlinks(self):
0 commit comments