mirror of
https://github.com/python/cpython.git
synced 2025-01-12 19:45:27 +08:00
5e056bbb76
test_*: converted to the new test harness. GvR note! test_signal.py works interatively (i.e. when verbose=1) but does not work inside the test harness. It must be a timing issue, but I haven't figured it out yet.
55 lines
1.0 KiB
Python
55 lines
1.0 KiB
Python
# 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.'
|