]> granicus.if.org Git - python/commitdiff
Windows doesn't have os.fork(). I'll just disable this test for now
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 26 Jun 2006 14:33:24 +0000 (14:33 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 26 Jun 2006 14:33:24 +0000 (14:33 +0000)
Lib/test/test_mailbox.py

index ad25404424ef96a4a27a875831fc4d7e08d8d480..b00496ca4f70810d559969c5b48e447323b1e3c9 100644 (file)
@@ -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.