rename helper function to prevent it from being picked up by nose, fixes #541
authorAndreas Heger <andreas.heger@gmail.com>
Mon, 18 Sep 2017 15:48:21 +0000 (16:48 +0100)
committerMattia Rizzolo <mattia@debian.org>
Tue, 24 Oct 2017 16:54:29 +0000 (17:54 +0100)
Gbp-Pq: Name rename-helper-function-to-prevent-it-from-being-picked-up-by-nose.patch

tests/linking_test.py

index ad76a4573902882d52560098eed9fe93f05d691e..25b9b04c7f854a7506cd5caf065f822d4bca5f9c 100644 (file)
@@ -20,7 +20,7 @@ def check_import(statement):
             raise
 
 
-def check_tests_pass(statement):
+def check_pass(statement):
     try:
         output = subprocess.check_output(
             statement, stderr=subprocess.STDOUT, shell=True)
@@ -55,7 +55,7 @@ class TestLinkWithRpath(TestLinking):
     package_name = "link_with_rpath"
     
     def test_package_tests_pass(self):
-        self.assertTrue(check_tests_pass(
+        self.assertTrue(check_pass(
             "cd {} && python test_module.py".format(os.path.join(self.workdir, "tests"))))
 
 
@@ -79,7 +79,7 @@ class TestLinkWithoutRpath(TestLinking):
         pysam_libdirs, pysam_libs = zip(*[os.path.split(x) for x in pysam_libraries])
         pysam_libdir = pysam_libdirs[0]
 
-        self.assertTrue(check_tests_pass(
+        self.assertTrue(check_pass(
             "export LD_LIBRARY_PATH={}:$PATH && cd {} && python test_module.py".format(
                 pysam_libdir,
                 os.path.join(self.workdir, "tests"))))