blob: 8b398291c6753e07114b346c9482bfcf4fe62fd1 [file] [log] [blame]
Tim Peters9ea17ac2001-02-02 05:57:15 +00001# Run the _test module tests (tests for the Python/C API): by defn, these
2# are all functions _test exports whose name begins with 'test_'.
3
4import sys
5import test_support
6import _test
7
8for name in dir(_test):
9 if name.startswith('test_'):
10 test = getattr(_test, name)
11 if test_support.verbose:
12 print "internal", name
13 try:
14 test()
15 except _test.error:
16 raise test_support.TestFailed, sys.exc_info()[1]