Commit 63eff6e8 authored by Anthony Baxter's avatar Anthony Baxter

nice tests dont leave little suprises in the environ

parent e622a88d
......@@ -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"]
#------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment