mirror of https://github.com/python/cpython
nice tests dont leave little suprises in the environ
This commit is contained in:
parent
5bf2516807
commit
afd5ce1814
|
@ -124,6 +124,7 @@ os.environ["POSIXLY_CORRECT"] = "1"
|
|||
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 New Issue