Commit 6e32dd58 authored by Tres Seaver's avatar Tres Seaver

**Don't** pollute os.environ when running tests.

parent b2a42f85
...@@ -39,7 +39,7 @@ from ZPublisher.BaseRequest import RequestContainer ...@@ -39,7 +39,7 @@ from ZPublisher.BaseRequest import RequestContainer
def makerequest(app, stdout=stdout): def makerequest(app, stdout=stdout):
resp = HTTPResponse(stdout=stdout) resp = HTTPResponse(stdout=stdout)
environ = os.environ environ = os.environ.copy()
environ['SERVER_NAME'] = 'foo' environ['SERVER_NAME'] = 'foo'
environ['SERVER_PORT'] = '80' environ['SERVER_PORT'] = '80'
environ['REQUEST_METHOD'] = 'GET' environ['REQUEST_METHOD'] = 'GET'
......
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