summaryrefslogtreecommitdiff
path: root/Lib/test/testall.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-12-09 22:34:15 +0000
committerBarry Warsaw <barry@python.org>1996-12-09 22:34:15 +0000
commit3ab26b9d7527f73d9a258ce4b6d15e915a4aebc1 (patch)
treebf3dc0c810b56a5a5596c12cd16df5db90507a58 /Lib/test/testall.py
parent8b43b19ec9ba5a51f8db3df51588d4ad104d8996 (diff)
downloadcpython-git-3ab26b9d7527f73d9a258ce4b6d15e915a4aebc1.tar.gz
(testall.py): Slightly improved test harness to make it easier to add
simple tests. (testall.py, testall.out): Added MD5 testsuite
Diffstat (limited to 'Lib/test/testall.py')
-rw-r--r--Lib/test/testall.py44
1 files changed, 8 insertions, 36 deletions
diff --git a/Lib/test/testall.py b/Lib/test/testall.py
index f8ce34691a..b31dd98e43 100644
--- a/Lib/test/testall.py
+++ b/Lib/test/testall.py
@@ -4,45 +4,17 @@
# Remember to add new tests when new features are added!
from test_support import *
-
+
print 'test_grammar'
forget('test_grammar')
import test_grammar
-print 'test_opcodes'
-unload('test_opcodes')
-import test_opcodes
-
-print 'test_operations'
-unload('test_operations')
-import test_operations
-
-print 'test_builtin'
-unload('test_builtin')
-import test_builtin
-
-print 'test_exceptions'
-unload('test_exceptions')
-import test_exceptions
-
-print 'test_types'
-unload('test_types')
-import test_types
-
-print 'test_math'
-unload('test_math')
-import test_math
-
-print 'test_time'
-unload('test_time')
-import test_time
-
-print 'test_array'
-unload('test_array')
-import test_array
-
-print 'test_strop'
-unload('test_strop')
-import test_strop
+for t in ['test_opcodes', 'test_operations', 'test_builtin',
+ 'test_exceptions', 'test_types', 'test_math', 'test_time',
+ 'test_array', 'test_strop', 'test_md5',
+ ]:
+ print t
+ unload(t)
+ __import__(t, globals(), locals())
print 'Passed all tests.'