From: Étienne Mollier Date: Sat, 31 Dec 2022 16:56:09 +0000 (+0100) Subject: skip tests bound to fail past python3.11. X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1^2^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6fb586e5791cd27e64bbedb4655e8cc541cac280;p=python-pysam.git skip tests bound to fail past python3.11. Bug: https://github.com/pysam-developers/pysam/issues/1151 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024425 Last-Update: 2022-12-27 Thanks John Marshall and Graham Inggs for the independent suggestion. Last-Update: 2022-12-27 Gbp-Pq: Name disable-tests-python3.11.patch --- diff --git a/tests/AlignmentFilePileup_test.py b/tests/AlignmentFilePileup_test.py index 8e75a52..72baaef 100644 --- a/tests/AlignmentFilePileup_test.py +++ b/tests/AlignmentFilePileup_test.py @@ -1,5 +1,6 @@ """Benchmarking module for AlignmentFile functionality""" import os +import sys import pysam import unittest from TestUtils import make_data_files, BAM_DATADIR, IS_PYTHON3, force_str, flatten_nested_list @@ -206,6 +207,10 @@ class TestPileupObjects(unittest.TestCase): def tearDown(self): self.samfile.close() + @unittest.skipIf((sys.version_info.major == 3 + and sys.version_info.minor >= 11) + or sys.version_info.major >= 4, + "Test known to fail past python3.11.") def testIteratorOutOfScope(self): '''test if exception is raised if pileup col is accessed after iterator is exhausted.'''