Last-Update: Tue, 11 Sep 2018 14:12:55 +0200
Description: Skip tests trying to access remote site
---- a/tests/AlignmentFile_test.py
-+++ b/tests/AlignmentFile_test.py
-@@ -1596,6 +1596,7 @@ class TestDoubleFetchCRAMWithReference(T
+Index: python-pysam/tests/AlignmentFile_test.py
+===================================================================
+--- python-pysam.orig/tests/AlignmentFile_test.py
++++ python-pysam/tests/AlignmentFile_test.py
+@@ -1623,6 +1623,7 @@ class TestDoubleFetchCRAMWithReference(T
reference_filename = os.path.join(BAM_DATADIR, 'ex1.fa')
class TestRemoteFileFTP(unittest.TestCase):
'''test remote access.
---- a/tests/tabix_test.py
-+++ b/tests/tabix_test.py
+Index: python-pysam/tests/tabix_test.py
+===================================================================
+--- python-pysam.orig/tests/tabix_test.py
++++ python-pysam/tests/tabix_test.py
@@ -1039,6 +1039,7 @@ for vcf_file in vcf_files:
globals()[n] = type(n, (TestVCFFromVariantFile,), dict(filename=vcf_file,))
#find . -name "tmp_*" -delete # This deletes samtools/tmp_file.* which is needed to build successfully
find . -name "*.bai*" -delete
find . -name "*.cram*" -delete
- find . -name "*.bam" -delete
+ #find . -name "*.bam" -delete # which deletes files tested
rm -rf tests/pysam_test_work \
tests/example_htslib.gtf.gz.tbi \
tests/log.txt \
tests/pysam_data/ex1.fa.gz \
tests/pysam_data/ex1.fa.gz.gzi \
tests/pysam_data/ex1_csi.bam.csi
+ rm -rf .pytest_cache/