Windows doesn't have os.fork(). I'll just disable this test for now

This commit is contained in:
Andrew M. Kuchling 2006-06-26 14:33:24 +00:00
parent 9afbacef27
commit ec3c368195
1 changed files with 2 additions and 0 deletions

View 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.