Commit b0752f36 authored by Liubov Chuprikova's avatar Liubov Chuprikova
Browse files

Add a patch to fix tests. Turn on testing

parent 8c569dfa
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
Author: Liubov Chuprikova <chuprikovalv@gmail.com>
Last-Update: Wed, 13 July 2018 11:36:44 +0300
Description: Define FileNotFoundError as OSError for python 2


--- a/pybedtools/test/test1.py
+++ b/pybedtools/test/test1.py
@@ -20,6 +20,12 @@
 import warnings
 
 
+try:
+    FileNotFoundError
+except NameError:
+    # python2
+    FileNotFoundError = OSError
+
 
 def fix(x):
     """
--- a/pybedtools/contrib/bigwig.py
+++ b/pybedtools/contrib/bigwig.py
@@ -6,6 +6,13 @@
 import subprocess
 
 
+try:
+    FileNotFoundError
+except NameError:
+    # python2
+    FileNotFoundError = OSError
+
+
 def mapped_read_count(bam, force=False):
     """
     Scale is cached in a bam.scale file containing the number of mapped reads.
+1 −0
Original line number Diff line number Diff line
@@ -4,3 +4,4 @@ disable-write-version
disable-test-156
rename-scripts
c8dff864dbc942bb7adb3e719b0702f7e3989d36.patch
define_filenotfounderror_python2.patch
+0 −2
Original line number Diff line number Diff line
@@ -27,5 +27,3 @@ override_dh_auto_install:
	rm -fr debian/python-pybedtools/usr/bin
	rm -fr debian/python3-pybedtools/usr/bin
override_dh_auto_test:
	echo "Not testing."