Skip to content

Commit d655a39

Browse files
committed
Skip test_adversity on Windows & Python 3.8
The way the test rig is written seems to be incompatible with ProactorEventLoop which is the dafault on Windows in Python 3.8
1 parent b8483d2 commit d655a39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_adversity.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,18 @@
88

99
import asyncio
1010
import os
11+
import platform
1112
import unittest
13+
import sys
1214

1315
from asyncpg import _testbase as tb
1416

1517

1618
@unittest.skipIf(os.environ.get('PGHOST'), 'using remote cluster for testing')
19+
@unittest.skipIf(
20+
platform.system() == 'Windows' and
21+
sys.version_info >= (3, 8),
22+
'not compatible with ProactorEventLoop which is default in Python 3.8')
1723
class TestConnectionLoss(tb.ProxiedClusterTestCase):
1824
@tb.with_timeout(30.0)
1925
async def test_connection_close_timeout(self):

0 commit comments

Comments
 (0)