mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-30 04:47:28 -07:00
22 lines
502 B
Diff
22 lines
502 B
Diff
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()
|