Liubov Chuprikova pushed to branch master at Debian Med / python-pybedtools
Commits: b0752f36 by Liubov Chuprikova at 2018-07-13T11:44:07+03:00 Add a patch to fix tests. Turn on testing - - - - - 3 changed files: - + debian/patches/define_filenotfounderror_python2.patch - debian/patches/series - debian/rules Changes: ===================================== debian/patches/define_filenotfounderror_python2.patch ===================================== --- /dev/null +++ b/debian/patches/define_filenotfounderror_python2.patch @@ -0,0 +1,36 @@ +Author: Liubov Chuprikova <[email protected]> +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. ===================================== debian/patches/series ===================================== --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ disable-write-version disable-test-156 rename-scripts c8dff864dbc942bb7adb3e719b0702f7e3989d36.patch +define_filenotfounderror_python2.patch ===================================== debian/rules ===================================== --- a/debian/rules +++ b/debian/rules @@ -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." View it on GitLab: https://salsa.debian.org/med-team/python-pybedtools/commit/b0752f36626fc7589f40f9b6960e722e3965c2d4 -- View it on GitLab: https://salsa.debian.org/med-team/python-pybedtools/commit/b0752f36626fc7589f40f9b6960e722e3965c2d4 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
