summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_getopt.py
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2004-08-03 11:14:19 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2004-08-03 11:14:19 (GMT)
commitafd5ce18143179b74129572d1df43f3643e35a08 (patch)
tree93141af53ea4dd2361372abf1c4e80508ceed02d /Lib/test/test_getopt.py
parent5bf2516807d9d04654b15ea4dfd03bbf52db94fb (diff)
downloadcpython-afd5ce18143179b74129572d1df43f3643e35a08.zip
cpython-afd5ce18143179b74129572d1df43f3643e35a08.tar.gz
cpython-afd5ce18143179b74129572d1df43f3643e35a08.tar.bz2
nice tests dont leave little suprises in the environ
Diffstat (limited to 'Lib/test/test_getopt.py')
-rw-r--r--Lib/test/test_getopt.py1
1 files changed, 1 insertions, 0 deletions
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"]
#------------------------------------------------------------------------------