diff options
Diffstat (limited to 'dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch')
-rw-r--r-- | dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch b/dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch new file mode 100644 index 000000000000..044fc67f0d3f --- /dev/null +++ b/dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch @@ -0,0 +1,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() |