Remove test that tries to access missing data file
authorAndreas Tille <tille@debian.org>
Sat, 17 Feb 2018 20:29:46 +0000 (21:29 +0100)
committerAndreas Tille <tille@debian.org>
Sat, 17 Feb 2018 20:29:46 +0000 (21:29 +0100)
debian/patches/skip_test_needing_missing_data.patch

index c203481eda67d2637a4d20cc4b99866b5c09a737..a395ab7a7b7a5f02dca37516a30a9d9ba2bee7d8 100644 (file)
@@ -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.'''