blob: 4bf0a662cb8e0f3e2c35fa882bd00f306c5ed51c [file] [log] [blame]
Guido van Rossum0bf32e31992-01-27 16:57:38 +00001# testall.py -- a regression test for the Python interpreter.
2# To run the tests, execute "import testall" in a clean interpreter.
3# It is a good idea to do this whenever you build a new interpreter.
4# Remember to add new tests when new features are added!
Guido van Rossum217a5fa1990-12-26 15:40:07 +00005
Guido van Rossum0bf32e31992-01-27 16:57:38 +00006from test_support import *
Barry Warsaw3ab26b91996-12-09 22:34:15 +00007
Guido van Rossum0bf32e31992-01-27 16:57:38 +00008print 'test_grammar'
9forget('test_grammar')
10import test_grammar
Guido van Rossum217a5fa1990-12-26 15:40:07 +000011
Barry Warsaw3ab26b91996-12-09 22:34:15 +000012for t in ['test_opcodes', 'test_operations', 'test_builtin',
13 'test_exceptions', 'test_types', 'test_math', 'test_time',
Roger E. Masseb7103571996-12-09 22:58:42 +000014 'test_array', 'test_strop', 'test_md5', 'test_cmath',
Roger E. Masse16f9fd21996-12-10 00:06:24 +000015 'test_crypt', 'test_dbm',
Barry Warsaw3ab26b91996-12-09 22:34:15 +000016 ]:
17 print t
18 unload(t)
19 __import__(t, globals(), locals())
Barry Warsaw49852831996-12-09 21:49:55 +000020
Guido van Rossum217a5fa1990-12-26 15:40:07 +000021print 'Passed all tests.'