summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncore.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-08-24 23:22:50 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-08-24 23:22:50 (GMT)
commita045c05878a44ba8458139e707f9abbf638a44e3 (patch)
treeca12931141724823a49465beecef892e45c109f4 /Lib/test/test_asyncore.py
parente3540b47d157d36d78ab8337995e26202020bdae (diff)
downloadcpython-a045c05878a44ba8458139e707f9abbf638a44e3.zip
cpython-a045c05878a44ba8458139e707f9abbf638a44e3.tar.gz
cpython-a045c05878a44ba8458139e707f9abbf638a44e3.tar.bz2
Issue #12656: Really fix test_asyncore failures on Windows buildbots...
Diffstat (limited to 'Lib/test/test_asyncore.py')
-rw-r--r--Lib/test/test_asyncore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py
index 30d9df2..2c84a27 100644
--- a/Lib/test/test_asyncore.py
+++ b/Lib/test/test_asyncore.py
@@ -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