summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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