[Python-checkins] r47103 - python/trunk/Lib/test/test_mailbox.py

andrew.kuchling python-checkins at python.org
Mon Jun 26 16:33:24 CEST 2006


Author: andrew.kuchling
Date: Mon Jun 26 16:33:24 2006
New Revision: 47103

Modified:
   python/trunk/Lib/test/test_mailbox.py
Log:
Windows doesn't have os.fork().  I'll just disable this test for now

Modified: python/trunk/Lib/test/test_mailbox.py
==============================================================================
--- python/trunk/Lib/test/test_mailbox.py	(original)
+++ python/trunk/Lib/test/test_mailbox.py	Mon Jun 26 16:33:24 2006
@@ -723,6 +723,8 @@
     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.


More information about the Python-checkins mailing list