From afd5ce18143179b74129572d1df43f3643e35a08 Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Tue, 3 Aug 2004 11:14:19 +0000 Subject: nice tests dont leave little suprises in the environ --- Lib/test/test_getopt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_getopt.py b/Lib/test/test_getopt.py index 0470851..da53593 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"] #------------------------------------------------------------------------------ -- cgit v0.12