summaryrefslogtreecommitdiff
path: root/dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch
blob: 044fc67f0d3f915144410d83df5e85fc89798f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/bin/pytest-local b/bin/pytest-local
new file mode 100755
index 0000000..a2b771b
--- /dev/null
+++ b/bin/pytest-local
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+import sys
+try:
+    # remove an already installed logilab-common module from
+    # the list of namespaces to force the local module to be tested
+    del sys.modules['logilab']
+except KeyError:
+    pass
+
+import warnings
+warnings.simplefilter('default', DeprecationWarning)
+
+from logilab.common.pytest import run
+run()