summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_py3kwarn.py2
-rw-r--r--Lib/test/testall.py6
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()