From 933b6426545ae28f68fab60490fe3bc1376fdc8e Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Sat, 17 Feb 2018 21:29:46 +0100 Subject: [PATCH] Remove test that tries to access missing data file --- .../patches/skip_test_needing_missing_data.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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.''' -- 2.30.2