1 # Run the _testcapi module tests (tests for the Python/C API): by defn,
2 # these are all functions _test exports whose name begins with 'test_'.
8 for name
in dir(_testcapi
):
9 if name
.startswith('test_'):
10 test
= getattr(_testcapi
, name
)
11 if test_support
.verbose
:
12 print "internal", name
15 except _testcapi
.error
:
16 raise test_support
.TestFailed
, sys
.exc_info()[1]