Skip to content

Commit 0de2cd8

Browse files
committed
Fix AsyncoreConnectionTests to check if asyncore present
Before 3.12 asyncore was present all the time. Now we need to check if it is there.
1 parent cae1b82 commit 0de2cd8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integration/standard/test_connection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ class AsyncoreConnectionTests(ConnectionTests, unittest.TestCase):
446446
def setUp(self):
447447
if is_monkey_patched():
448448
raise unittest.SkipTest("Can't test asyncore with monkey patching")
449+
if AsyncoreConnection is None:
450+
raise unittest.SkipTest(
451+
'asyncore does not appear to be installed properly')
449452
ConnectionTests.setUp(self)
450453

451454
def clean_global_loop(self):

0 commit comments

Comments
 (0)