File: 2002_skip-framework-integration-tests.patch

package info (click to toggle)
click 0.5.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,372 kB
  • sloc: python: 7,135; ansic: 857; makefile: 441; sh: 236; perl: 26; xml: 11
file content (15 lines) | stat: -rw-r--r-- 719 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Ignore /usr/share/clicks/frameworks/.placeholder file in unit tests.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Forwarded: not needed, Debian-specific

--- a/click_package/tests/integration/test_frameworks.py
+++ b/click_package/tests/integration/test_frameworks.py
@@ -25,7 +25,7 @@
     def setUp(self):
         super(TestFrameworks, self).setUp()
         if (not os.path.exists("/usr/share/click/frameworks") or
-                not os.listdir("/usr/share/click/frameworks")):
+                not [ item for item in os.listdir("/usr/share/click/frameworks") if item != '.placeholder' ]):
             self.skipTest("Please install ubuntu-sdk-libs")
 
     def test_framework_list(self):