From: Andreas Tille Date: Sat, 17 Feb 2018 20:29:46 +0000 (+0100) Subject: Remove test that tries to access missing data file X-Git-Tag: archive/raspbian/0.22.0+ds-1+rpi1~1^2^2~134 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=933b6426545ae28f68fab60490fe3bc1376fdc8e;p=python-pysam.git Remove test that tries to access missing data file --- diff --git a/debian/patches/skip_test_needing_missing_data.patch b/debian/patches/skip_test_needing_missing_data.patch index c203481..a395ab7 100644 --- a/debian/patches/skip_test_needing_missing_data.patch +++ b/debian/patches/skip_test_needing_missing_data.patch @@ -15,3 +15,18 @@ Last-Update: Sat, 17 Feb 2018 15:24:34 +0100 # ex2.sam - as ex1.sam, but with header ex2.sam.gz: ex1.bam ex1.bam.bai +--- a/tests/AlignmentFile_test.py ++++ b/tests/AlignmentFile_test.py +@@ -1361,12 +1361,7 @@ class TestEmptyHeader(unittest.TestCase) + 'example_empty_header.bam')) + self.assertEqual(s.header.to_dict(), {'SQ': [{'LN': 1000, 'SN': 'chr1'}]}) + +- def test_bam_without_seq_in_header(self): +- s = pysam.AlignmentFile(os.path.join(BAM_DATADIR, "example_no_seq_in_header.bam")) +- self.assertTrue("SQ" in s.header.to_dict()) +- self.assertTrue("@SQ" in str(s.header)) + +- + class TestHeaderWithProgramOptions(unittest.TestCase): + + '''see issue 39.'''