mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 10:58:21 -07:00
dev-python/dbusmock: New package for easily running tests by D-Bus requiring software
Needed by gnome-settings-daemon power plugin tests
This commit is contained in:
20
dev-python/dbusmock/files/0.16.7-disable-pyflakes-test.patch
Normal file
20
dev-python/dbusmock/files/0.16.7-disable-pyflakes-test.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
https://github.com/martinpitt/python-dbusmock/issues/28
|
||||
|
||||
--- a/tests/test_code.orig
|
||||
+++ b/tests/test_code.py
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
class StaticCodeTests(unittest.TestCase):
|
||||
+ """
|
||||
@unittest.skipIf(subprocess.call(['which', 'pyflakes'],
|
||||
stdout=subprocess.PIPE) != 0,
|
||||
'pyflakes not installed')
|
||||
@@ -25,6 +26,7 @@
|
||||
universal_newlines=True)
|
||||
(out, err) = pyflakes.communicate()
|
||||
self.assertEqual(pyflakes.returncode, 0, out)
|
||||
+ """
|
||||
|
||||
@unittest.skipIf(subprocess.call(['which', 'pep8'],
|
||||
stdout=subprocess.PIPE) != 0,
|
||||
Reference in New Issue
Block a user