summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2009-07-31 21:08:34 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2009-07-31 21:08:34 +0200
commit31def7ddeaeedc058f50703e973f6fcf619a7f99 (patch)
tree4a802a3551269a426ae6acb8a8ead3fe15443908 /testlib.py
parentbefdfbd9e58024421599c45b7ea1ea53fc001e14 (diff)
downloadlogilab-common-31def7ddeaeedc058f50703e973f6fcf619a7f99.tar.gz
R [all] obsolete was renamed deprecated
Diffstat (limited to 'testlib.py')
-rw-r--r--testlib.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testlib.py b/testlib.py
index 7d02cd4..9882dfa 100644
--- a/testlib.py
+++ b/testlib.py
@@ -57,7 +57,7 @@ except ImportError:
test_support = TestSupport()
from logilab.common.deprecation import class_renamed, deprecated_function, \
- obsolete
+ deprecated
# pylint: disable-msg=W0622
from logilab.common.compat import set, enumerate, any, sorted
# pylint: enable-msg=W0622
@@ -98,6 +98,7 @@ def with_tempdir(callable):
return proxy
+@deprecated("testlib.main() is obsolete, use the pytest tool instead")
def main(testdir=None, exitafter=True):
"""Execute a test suite.
@@ -205,7 +206,7 @@ def main(testdir=None, exitafter=True):
else:
sys.path.pop(0)
return len(bad)
-main = obsolete("testlib.main() is obsolete, use the pytest tool instead")(main)
+
def run_tests(tests, quiet, verbose, runner=None, capture=0):