Skip to content

Commit 91b3d08

Browse files
committed
CRF: skip filter on patch versions
1 parent 55d14d0 commit 91b3d08

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

tests/test_aiohttp.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,12 @@ async def stop():
117117
self.loop.run_until_complete(stop())
118118

119119
def test_aiohttp_connection_lost_when_busy(self):
120-
if self.implementation == 'asyncio' and sys.version_info < (3, 13):
120+
if self.implementation == 'asyncio' and (
121+
sys.version_info < (3, 12, 8)
122+
or sys.version_info[:3] == (3, 13, 0)
123+
):
121124
raise unittest.SkipTest(
122-
"asyncio bug #118950, fixed in CPython 3.13+"
125+
"asyncio bug #118950, fixed in CPython 3.12.8 and 3.13.1"
123126
)
124127

125128
cert = tb._cert_fullname(__file__, 'ssl_cert.pem')

tests/test_tcp.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,9 +3315,12 @@ async def run_main():
33153315
self.loop.run_until_complete(run_main())
33163316

33173317
def test_connection_lost_when_busy(self):
3318-
if self.implementation == 'asyncio' and sys.version_info < (3, 13):
3318+
if self.implementation == 'asyncio' and (
3319+
sys.version_info < (3, 12, 8)
3320+
or sys.version_info[:3] == (3, 13, 0)
3321+
):
33193322
raise unittest.SkipTest(
3320-
"asyncio bug #118950, fixed in CPython 3.13+"
3323+
"asyncio bug #118950, fixed in CPython 3.12.8 and 3.13.1"
33213324
)
33223325

33233326
ssl_context = self._create_server_ssl_context(

0 commit comments

Comments
 (0)