Commit 7f4f8c3f authored by Antoine Pitrou's avatar Antoine Pitrou

Try to fix test_wsgiref failures due to test_httpservers modifying the environment

parent f226ac8a
......@@ -341,13 +341,17 @@ class CGIHTTPServerTestCase(BaseTestCase):
def test_main(verbose=None):
cwd = os.getcwd()
env = os.environ.copy()
try:
cwd = os.getcwd()
test_support.run_unittest(BaseHTTPServerTestCase,
SimpleHTTPServerTestCase,
CGIHTTPServerTestCase
)
finally:
test_support.reap_children()
os.environ.clear()
os.environ.update(env)
os.chdir(cwd)
if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment