Staging
v0.5.1
https://github.com/python/cpython
Revision 0108b375da06e736e2d1547eecdfad28b6bd7157 authored by Fred Drake on 29 May 2001, 15:39:24 UTC, committed by Fred Drake on 29 May 2001, 15:39:24 UTC
optional in the documentation.

This closes SF bug #427985.
1 parent 477bd2d
Raw File
Tip revision: 0108b375da06e736e2d1547eecdfad28b6bd7157 authored by Fred Drake on 29 May 2001, 15:39:24 UTC
The parameter to the listen() method is not optional, but was marked as
Tip revision: 0108b37
test_capi.py
# Run the _testcapi module tests (tests for the Python/C API):  by defn,
# these are all functions _testcapi exports whose name begins with 'test_'.

import sys
import test_support
import _testcapi

for name in dir(_testcapi):
    if name.startswith('test_'):
        test = getattr(_testcapi, name)
        if test_support.verbose:
            print "internal", name
        try:
            test()
        except _testcapi.error:
            raise test_support.TestFailed, sys.exc_info()[1]
back to top