diff --git a/Lib/test/test_getopt.py b/Lib/test/test_getopt.py index 04708518a91..da535939d04 100644 --- a/Lib/test/test_getopt.py +++ b/Lib/test/test_getopt.py @@ -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"] #------------------------------------------------------------------------------