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

View file

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