]> granicus.if.org Git - python/commitdiff
EMX fork() emulation not good enough to cope with test_socketserver
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Thu, 2 Jan 2003 12:49:00 +0000 (12:49 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Thu, 2 Jan 2003 12:49:00 +0000 (12:49 +0000)
Lib/test/test_socketserver.py

index 29c8c37d22665fd884ebef04fa8c598827ebe027..36396daa6f93a87dc1782ae4883fc45a5bc11057 100644 (file)
@@ -124,10 +124,10 @@ def testloop(proto, servers, hdlrcls, testfunc):
         if verbose: print "done"
 
 tcpservers = [TCPServer, ThreadingTCPServer]
-if hasattr(os, 'fork'):
+if hasattr(os, 'fork') and os.name not in ('os2',):
     tcpservers.append(ForkingTCPServer)
 udpservers = [UDPServer, ThreadingUDPServer]
-if hasattr(os, 'fork'):
+if hasattr(os, 'fork') and os.name not in ('os2',):
     udpservers.append(ForkingUDPServer)
 
 if not hasattr(socket, 'AF_UNIX'):