mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
nice tests dont leave little suprises in the environ
This commit is contained in:
parent
5bf2516807
commit
afd5ce1814
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ os.environ["POSIXLY_CORRECT"] = "1"
|
||||||
opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta='])
|
opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta='])
|
||||||
verify(opts == [('-a', '')])
|
verify(opts == [('-a', '')])
|
||||||
verify(args == ['arg1', '-b', '1', '--alpha', '--beta=2'])
|
verify(args == ['arg1', '-b', '1', '--alpha', '--beta=2'])
|
||||||
|
del os.environ["POSIXLY_CORRECT"]
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue