]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
TestHelp.make_parser(): This was making a permanent change to
authorTim Peters <tim.peters@gmail.com>
Mon, 19 Jun 2006 09:09:44 +0000 (09:09 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 19 Jun 2006 09:09:44 +0000 (09:09 +0000)
commite7d7caa17a3f63732ded961629704283a5508662
tree0042db31fec23e085491f720cbf626097c02dcff
parentc314ac54928f331bce52b2834aceb666373ef340
TestHelp.make_parser():  This was making a permanent change to
os.environ (setting envar COLUMNS), which at least caused
test_float_default() to fail if the tests were run more than once.

This repairs the test_optparse -R failures Neal reported on
python-dev.  It also explains some seemingly bizarre test_optparse
failures we saw a couple weeks ago on the buildbots, when
test_optparse failed due to test_file failing to clean up after
itself, and then test_optparse failed in an entirely different
way when regrtest's -w option ran test_optparse a second time.
It's now obvious that make_parser() permanently changing os.environ
was responsible for the second half of that.
Lib/test/test_optparse.py