diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-09 05:25:37 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-09 05:25:37 (GMT) |
commit | 3c759144340dc8f7548d5f62e0d195ed8e689a12 (patch) | |
tree | d9d064741efbad613f62b43316ef70f6f8330534 /Lib | |
parent | d7265d64831f870f46b7c61244b2c86dc803f292 (diff) | |
download | cpython-3c759144340dc8f7548d5f62e0d195ed8e689a12.zip cpython-3c759144340dc8f7548d5f62e0d195ed8e689a12.tar.gz cpython-3c759144340dc8f7548d5f62e0d195ed8e689a12.tar.bz2 |
Deprecate test.testall for removal in 3.0.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_py3kwarn.py | 2 | ||||
-rw-r--r-- | Lib/test/testall.py | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 0933382..c66ff73 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -126,6 +126,8 @@ class TestPy3KWarnings(unittest.TestCase): class TestStdlibRemovals(unittest.TestCase): + # test.testall not tested as it executes all unit tests as an + # import side-effect. all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new') def check_removal(self, module_name): diff --git a/Lib/test/testall.py b/Lib/test/testall.py index 2349394..5b5cf01 100644 --- a/Lib/test/testall.py +++ b/Lib/test/testall.py @@ -1,4 +1,10 @@ # Backward compatibility -- you should use regrtest instead of this module. +from warnings import warnpy3k +warnpy3k("the test.testall module has been removed in Python 3.0", + stacklevel=2) +del warnpy3k + + import sys, regrtest sys.argv[1:] = ["-vv"] regrtest.main() |