diff options
author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2009-07-31 21:08:34 +0200 |
---|---|---|
committer | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2009-07-31 21:08:34 +0200 |
commit | 31def7ddeaeedc058f50703e973f6fcf619a7f99 (patch) | |
tree | 4a802a3551269a426ae6acb8a8ead3fe15443908 /testlib.py | |
parent | befdfbd9e58024421599c45b7ea1ea53fc001e14 (diff) | |
download | logilab-common-31def7ddeaeedc058f50703e973f6fcf619a7f99.tar.gz |
R [all] obsolete was renamed deprecated
Diffstat (limited to 'testlib.py')
-rw-r--r-- | testlib.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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): |