Attaching a patch to fix this.
diff -Nru pytest-pylint-0.6.0/debian/changelog 
pytest-pylint-0.6.0/debian/changelog
--- pytest-pylint-0.6.0/debian/changelog        2016-08-02 17:56:04.000000000 
+1200
+++ pytest-pylint-0.6.0/debian/changelog        2017-07-19 15:25:40.000000000 
+1200
@@ -1,3 +1,10 @@
+pytest-pylint (0.6.0-2) UNRELEASED; urgency=medium
+
+  * Prevent tests in the debian/$pkg directories from being collected when
+    running the tests.
+
+ -- Michael Hudson-Doyle <michael.hud...@ubuntu.com>  Wed, 19 Jul 2017 
15:25:09 +1200
+
 pytest-pylint (0.6.0-1) unstable; urgency=medium
 
   [ Ondřej Nový ]
diff -Nru pytest-pylint-0.6.0/debian/rules pytest-pylint-0.6.0/debian/rules
--- pytest-pylint-0.6.0/debian/rules    2016-08-02 17:56:04.000000000 +1200
+++ pytest-pylint-0.6.0/debian/rules    2017-07-19 15:25:52.000000000 +1200
@@ -10,7 +10,7 @@
 
 override_dh_auto_install:
        dh_auto_install
-       PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x" 
dh_auto_test
+       PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x 
--ignore debian" dh_auto_test
        # run tests after install: plugin needs to get registered by 
setup.py/entry_points
 
 override_dh_installchangelogs:

Reply via email to