Kaydet (Commit) 3c759144 authored tarafından Brett Cannon's avatar Brett Cannon

Deprecate test.testall for removal in 3.0.

üst d7265d64
...@@ -316,7 +316,7 @@ The :class:`PyZipFile` constructor takes the same parameters as the ...@@ -316,7 +316,7 @@ The :class:`PyZipFile` constructor takes the same parameters as the
string.pyc # Top level name string.pyc # Top level name
test/__init__.pyc # Package directory 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/__init__.pyc # Subpackage directory
test/bogus/myfile.pyc # Submodule test.bogus.myfile test/bogus/myfile.pyc # Submodule test.bogus.myfile
......
...@@ -126,6 +126,8 @@ class TestPy3KWarnings(unittest.TestCase): ...@@ -126,6 +126,8 @@ class TestPy3KWarnings(unittest.TestCase):
class TestStdlibRemovals(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') all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new')
def check_removal(self, module_name): def check_removal(self, module_name):
......
# Backward compatibility -- you should use regrtest instead of this module. # 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 import sys, regrtest
sys.argv[1:] = ["-vv"] sys.argv[1:] = ["-vv"]
regrtest.main() regrtest.main()
...@@ -20,6 +20,8 @@ Extension Modules ...@@ -20,6 +20,8 @@ Extension Modules
Library 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 new module has been deprecated for removal in Python 3.0.
- The user module has been deprecated for removal in Python 3.0. - The user module has been deprecated for removal in Python 3.0.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment