Issue #12656: Really fix test_asyncore failures on Windows buildbots...
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 @@
 
 @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