nice tests dont leave little suprises in the environ

This commit is contained in:
Anthony Baxter 2004-08-03 11:14:19 +00:00
parent 5bf2516807
commit afd5ce1814
1 changed files with 1 additions and 0 deletions

View File

@ -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"]
#------------------------------------------------------------------------------