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 82932b7 commit 7255bbdCopy full SHA for 7255bbd
Lib/test/test_posix.py
@@ -231,6 +231,9 @@ def test_register_at_fork(self):
231
with self.assertRaises(TypeError, msg="Invalid arg was allowed"):
232
# Ensure a combination of valid and invalid is an error.
233
os.register_at_fork(before=None, after_in_parent=lambda: 3)
234
+ with self.assertRaises(TypeError, msg="At least one argument is required"):
235
+ # when no arg is passed
236
+ os.register_at_fork()
237
238
239
os.register_at_fork(before=lambda: None, after_in_child='')
0 commit comments