Skip to content

Commit 1378aa5

Browse files
committed
test: disable flaky tests on Python 3.11
1 parent 6a21641 commit 1378aa5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/test_extractor.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,10 @@ def extension_list(self) -> list[str]:
263263
return self.extractor.file_extractors[self.extractor.extract_file_deb]
264264

265265
@pytest.mark.asyncio
266-
@pytest.mark.skipif(sys.version_info < (3, 8), reason="py3.7 fails sometimes")
266+
@pytest.mark.skipif(
267+
sys.version_info.major == 3 and (sys.version_info.minor in (7, 11)),
268+
reason="py3.7 and py3.11 fail sometimes",
269+
)
267270
async def test_extract_file_deb(self, extension_list: list[str]):
268271
"""Test the deb file extraction"""
269272
async for extracted_path in self.extract_files(
@@ -310,7 +313,10 @@ def extension_list(self) -> list[str]:
310313
return self.extractor.file_extractors[self.extractor.extract_file_deb]
311314

312315
@pytest.mark.asyncio
313-
@pytest.mark.skipif(sys.version_info < (3, 8), reason="py3.7 fails sometimes")
316+
@pytest.mark.skipif(
317+
sys.version_info.major == 3 and (sys.version_info.minor in (7, 11)),
318+
reason="py3.7 and py3.11 fail sometimes",
319+
)
314320
async def test_extract_file_ipk(self, extension_list: list[str]):
315321
"""Test the ipk file extraction"""
316322
async for extracted_path in self.extract_files(

0 commit comments

Comments
 (0)