test_support. Also fixed the expected output.
test_getopt
-Running tests on getopt.short_has_arg
-Running tests on getopt.long_has_args
-Running tests on getopt.do_shorts
-Running tests on getopt.do_longs
-Running tests on getopt.getopt
-Module getopt: tests completed successfully.
import getopt
from getopt import GetoptError
-from test.test_support import verbose
+from test_support import verbose
def expectException(teststr, expected, failure=AssertionError):
"""Executes a statement passed in teststr, and raises an exception