blob: 9d680b10b979ce5062f1182bab71f1581f362972 [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',
Barry Warsaw3ab26b91996-12-09 22:34:15 +000015 ]:
16 print t
17 unload(t)
18 __import__(t, globals(), locals())
Barry Warsaw49852831996-12-09 21:49:55 +000019
Guido van Rossum217a5fa1990-12-26 15:40:07 +000020print 'Passed all tests.'