Don't reference a module named test.test_support. Always use plain

test_support.  Also fixed the expected output.
This commit is contained in:
Guido van Rossum 2000-08-21 22:59:29 +00:00
parent 79ca79d1a9
commit ff18b800a4
2 changed files with 1 additions and 7 deletions

View File

@ -1,7 +1 @@
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.

View File

@ -3,7 +3,7 @@
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