From 3c759144340dc8f7548d5f62e0d195ed8e689a12 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 9 May 2008 05:25:37 +0000 Subject: [PATCH] Deprecate test.testall for removal in 3.0. --- Doc/library/zipfile.rst | 2 +- Lib/test/test_py3kwarn.py | 2 ++ Lib/test/testall.py | 6 ++++++ Misc/NEWS | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index 1f365d561fa..5f509aa25bd 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -316,7 +316,7 @@ The :class:`PyZipFile` constructor takes the same parameters as the string.pyc # Top level name test/__init__.pyc # Package directory - test/testall.pyc # Module test.testall + test/test_support.pyc # Module test.test_support test/bogus/__init__.pyc # Subpackage directory test/bogus/myfile.pyc # Submodule test.bogus.myfile diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 09333824bc4..c66ff73f240 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 23493940c7b..5b5cf01e81f 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() diff --git a/Misc/NEWS b/Misc/NEWS index 08d36c40dff..82af109a44e 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -20,6 +20,8 @@ Extension Modules Library ------- +- The test.testall module has been deprecated for removal in Python 3.0. + - The new module has been deprecated for removal in Python 3.0. - The user module has been deprecated for removal in Python 3.0.