diff options
-rw-r--r-- | Lib/test/test_mailbox.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index ad25404..b00496c 100644 --- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -723,6 +723,8 @@ class _TestMboxMMDF(TestMailbox): def test_lock_conflict(self): # Fork off a subprocess that will lock the file for 2 seconds, # unlock it, and then exit. + if not hasattr(os, 'fork'): + return pid = os.fork() if pid == 0: # In the child, lock the mailbox. |