Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b3c169b0
Commit
b3c169b0
authored
Nov 03, 2009
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to make test_wsgiref less fragile against environment changes by other tests
parent
5b54432b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Lib/test/test_wsgiref.py
Lib/test/test_wsgiref.py
+8
-1
No files found.
Lib/test/test_wsgiref.py
View file @
b3c169b0
...
...
@@ -9,7 +9,9 @@ from wsgiref.simple_server import WSGIServer, WSGIRequestHandler, demo_app
from
wsgiref.simple_server
import
make_server
from
StringIO
import
StringIO
from
SocketServer
import
BaseServer
import
re
,
sys
import
os
import
re
import
sys
from
test
import
test_support
...
...
@@ -386,6 +388,11 @@ class HeaderTests(TestCase):
class
ErrorHandler
(
BaseCGIHandler
):
"""Simple handler subclass for testing BaseHandler"""
# BaseHandler records the OS environment at import time, but envvars
# might have been changed later by other tests, which trips up
# HandlerTests.testEnviron().
os_environ
=
dict
(
os
.
environ
.
items
())
def
__init__
(
self
,
**
kw
):
setup_testing_defaults
(
kw
)
BaseCGIHandler
.
__init__
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment