summaryrefslogtreecommitdiffstats
path: root/Lib/test/testall.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-03-07 21:05:43 (GMT)
committerGuido van Rossum <guido@python.org>1997-03-07 21:05:43 (GMT)
commit27e280dc7769427b0386dfc7b36e97a7b4274554 (patch)
tree76c1682ff781ec44e492e98436c875c60143dc03 /Lib/test/testall.py
parentf58ed2596706b97c16174a839c1ed6f6b1f87fa6 (diff)
downloadcpython-27e280dc7769427b0386dfc7b36e97a7b4274554.zip
cpython-27e280dc7769427b0386dfc7b36e97a7b4274554.tar.gz
cpython-27e280dc7769427b0386dfc7b36e97a7b4274554.tar.bz2
Restore old behavior of autotest and testall, using regrtest.
This is done for backward compatibility with Python 1.4.
Diffstat (limited to 'Lib/test/testall.py')
-rw-r--r--Lib/test/testall.py58
1 files changed, 4 insertions, 54 deletions
diff --git a/Lib/test/testall.py b/Lib/test/testall.py
index e410e8f..2349394 100644
--- a/Lib/test/testall.py
+++ b/Lib/test/testall.py
@@ -1,54 +1,4 @@
-# This file now contains only the list of separate regression tests.
-# All of the testing harness is now contained in autotest.py.
-
-tests = ['test_grammar',
- 'test_opcodes',
- 'test_operations',
- 'test_builtin',
- 'test_exceptions',
- 'test_types',
- 'test_math',
- 'test_time',
- 'test_array',
- 'test_strop',
- 'test_md5',
- 'test_cmath',
- 'test_crypt',
- 'test_dbm',
- 'test_new',
- 'test_nis',
- 'test_pwd',
- 'test_rgbimg',
- 'test_select',
- 'test_strftime',
- 'test_struct',
- 'test_errno',
- 'test_dl',
- 'test_thread',
- 'test_xdr',
- 'test_fcntl',
- 'test_gdbm',
- 'test_grp',
- 'test_operator',
- 'test_imageop',
- 'test_imgfile',
- 'test_regex',
- 'test_rotor',
- ]
-
-if __name__ == '__main__':
- # low-overhead testing, for cases where autotest.py harness
- # doesn't even work!
- import sys
- from test_support import *
-
- for t in tests:
- print t
- unload(t)
- try:
- __import__(t, globals(), locals())
- except ImportError, msg:
-## sys.stderr.write('%s. Uninstalled optional module?\n' % msg)
- pass
-
- print 'Passed all tests.'
+# Backward compatibility -- you should use regrtest instead of this module.
+import sys, regrtest
+sys.argv[1:] = ["-vv"]
+regrtest.main()