Use pytest instead of nosetest
authorAndreas Tille <tille@debian.org>
Mon, 25 Sep 2017 17:37:54 +0000 (19:37 +0200)
committerAndreas Tille <tille@debian.org>
Mon, 25 Sep 2017 17:37:54 +0000 (19:37 +0200)
debian/changelog
debian/control
debian/rules

index 9d290ad0dd92995f91852f6d62010a63ea27be07..73842020eb803653bf8b1514060957b6948b93b6 100644 (file)
@@ -5,6 +5,7 @@ python-pysam (0.12.0.1+ds-1) UNRELEASED; urgency=medium
   * Standards-Version: 4.1.0 (no changes needed)
   * Apply upstream patch to fix test suite
     Closes: #871083, #834856
+  * Use pytest instead of nosetest
 
   [ Afif Elghraoui ]
   * New upstream version
index 020b1ec6799776e014e6924f7fb84f340ae8f2bb..deba46e5f9151e5f60d5243d012918c00bef61f1 100644 (file)
@@ -22,8 +22,8 @@ Build-Depends:
        tabix,
        samtools (>= 1.5),
        bcftools (>= 1.5),
-       python-nose,
-       python3-nose,
+       python-pytest,
+       python3-pytest,
 Standards-Version: 4.1.0
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-pysam.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/python-pysam.git
index d062880b06914ef1446c000b91715e21d5c48a83..39aeb3f4138eeb552a8fb6cf04eba9e5ece384c5 100755 (executable)
@@ -15,17 +15,6 @@ HTSLIBDIR  := /usr/lib/$(DEB_HOST_MULTIARCH)
 export HTSLIB_LIBRARY_DIR=$(HTSLIBDIR)
 export HTSLIB_INCLUDE_DIR=/usr/include
 
-export PYBUILD_TEST_NOSE=1
-# pybuild calls nosetests as `python{version} -m nose tests`
-#
-# The "tests" argument (passed by pybuild as shown above) fails,
-# so don't pass anything:
-export PYBUILD_TEST_ARGS=
-# This is how we pass parameters to nose without command-line flags
-export NOSE_WHERE=$(CURDIR)/tests
-export NOSE_VERBOSE=2
-export NOSE_NOCAPTURE=1
-
 # DEB_BUILD_OPTIONS := nocheck
 
 clean: clean-tests