]> granicus.if.org Git - python/commitdiff
Deprecate test.testall for removal in 3.0.
authorBrett Cannon <bcannon@gmail.com>
Fri, 9 May 2008 05:25:37 +0000 (05:25 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 9 May 2008 05:25:37 +0000 (05:25 +0000)
Doc/library/zipfile.rst
Lib/test/test_py3kwarn.py
Lib/test/testall.py
Misc/NEWS

index 1f365d561fa6fdda9ca0d3541410358b5b32b5a3..5f509aa25bdb9e2842312b8746a1410ae36b1ea2 100644 (file)
@@ -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
 
index 09333824bc488c672c20dac5d0f008eb28879024..c66ff73f240943df964369779657f34fa3a3e5f4 100644 (file)
@@ -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):
index 23493940c7b8de274bf0c8d45b01222bfc09e250..5b5cf01e81ffafe3e07284936340d202f7d4f051 100644 (file)
@@ -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()
index 08d36c40dffb89bf0d34ea287d33248cfc527f45..82af109a44e3e8c526a76c14d94160abf3afb407 100644 (file)
--- 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.