[Zope-Checkins]
SVN: Zope/branches/2.9/lib/python/Testing/makerequest.py
**Don't** pollute os.environ when running tests.
Tres Seaver
tseaver at palladion.com
Tue May 16 10:01:06 EDT 2006
Log message for revision 68150:
**Don't** pollute os.environ when running tests.
Changed:
U Zope/branches/2.9/lib/python/Testing/makerequest.py
-=-
Modified: Zope/branches/2.9/lib/python/Testing/makerequest.py
===================================================================
--- Zope/branches/2.9/lib/python/Testing/makerequest.py 2006-05-16 13:47:31 UTC (rev 68149)
+++ Zope/branches/2.9/lib/python/Testing/makerequest.py 2006-05-16 14:01:05 UTC (rev 68150)
@@ -39,7 +39,7 @@
def makerequest(app, stdout=stdout):
resp = HTTPResponse(stdout=stdout)
- environ = os.environ
+ environ = os.environ.copy()
environ['SERVER_NAME'] = 'foo'
environ['SERVER_PORT'] = '80'
environ['REQUEST_METHOD'] = 'GET'
More information about the Zope-Checkins
mailing list