Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 1 | # 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 Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 5 | |
Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 6 | from test_support import * |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 7 | |
Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 8 | print 'test_grammar' |
| 9 | forget('test_grammar') |
| 10 | import test_grammar |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 12 | print 'test_opcodes' |
| 13 | unload('test_opcodes') |
| 14 | import test_opcodes |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 15 | |
Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 16 | print 'test_operations' |
| 17 | unload('test_operations') |
| 18 | import test_operations |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 19 | |
Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 20 | print 'test_builtin' |
| 21 | unload('test_builtin') |
| 22 | import test_builtin |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 23 | |
Guido van Rossum | 0bf32e3 | 1992-01-27 16:57:38 +0000 | [diff] [blame] | 24 | print 'test_exceptions' |
| 25 | unload('test_exceptions') |
| 26 | import test_exceptions |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 27 | |
Guido van Rossum | 85f1820 | 1992-11-27 22:53:50 +0000 | [diff] [blame] | 28 | print 'test_types' |
| 29 | unload('test_types') |
| 30 | import test_types |
| 31 | |
Guido van Rossum | fcce630 | 1996-08-08 18:26:25 +0000 | [diff] [blame] | 32 | print 'test_math' |
| 33 | unload('test_math') |
| 34 | import test_math |
| 35 | |
Barry Warsaw | 6ab7f07 | 1996-12-06 23:30:49 +0000 | [diff] [blame^] | 36 | print 'test_time' |
| 37 | unload('test_time') |
| 38 | import test_time |
| 39 | |
Guido van Rossum | 217a5fa | 1990-12-26 15:40:07 +0000 | [diff] [blame] | 40 | print 'Passed all tests.' |