You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/logilab-common/files/logilab-common-1.2.2-test-n...

22 lines
502 B

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()