mirror of
https://github.com/python/cpython
synced 2024-10-14 21:49:11 +00:00
nice tests dont leave little suprises in the environ
This commit is contained in:
parent
5bf2516807
commit
afd5ce1814
|
@ -124,6 +124,7 @@ def expectException(teststr, expected, failure=AssertionError):
|
|||
opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta='])
|
||||
verify(opts == [('-a', '')])
|
||||
verify(args == ['arg1', '-b', '1', '--alpha', '--beta=2'])
|
||||
del os.environ["POSIXLY_CORRECT"]
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue