mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Don't reference a module named test.test_support. Always use plain
test_support. Also fixed the expected output.
This commit is contained in:
parent
79ca79d1a9
commit
ff18b800a4
2 changed files with 1 additions and 7 deletions
|
@ -1,7 +1 @@
|
||||||
test_getopt
|
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.
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
import getopt
|
import getopt
|
||||||
from getopt import GetoptError
|
from getopt import GetoptError
|
||||||
from test.test_support import verbose
|
from test_support import verbose
|
||||||
|
|
||||||
def expectException(teststr, expected, failure=AssertionError):
|
def expectException(teststr, expected, failure=AssertionError):
|
||||||
"""Executes a statement passed in teststr, and raises an exception
|
"""Executes a statement passed in teststr, and raises an exception
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue