]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12656: Really fix test_asyncore failures on Windows buildbots...
authorCharles-François Natali <neologix@free.fr>
Wed, 24 Aug 2011 23:22:50 +0000 (01:22 +0200)
committerCharles-François Natali <neologix@free.fr>
Wed, 24 Aug 2011 23:22:50 +0000 (01:22 +0200)
Lib/test/test_asyncore.py

index 30d9df2a1e740eacfe092c2b34081cee51c02f78..2c84a271f5b2760c1422aca968d774dc6588deb6 100644 (file)
@@ -757,7 +757,8 @@ class TestAPI_UseIPv6Sockets(BaseTestAPI):
 
 @unittest.skipUnless(HAS_UNIX_SOCKETS, 'Unix sockets required')
 class TestAPI_UseUnixSockets(BaseTestAPI):
-    family = socket.AF_UNIX
+    if HAS_UNIX_SOCKETS:
+        family = socket.AF_UNIX
     addr = support.TESTFN
     use_poll = False