summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_wsgiref.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2015-09-03 09:27:18 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2015-09-03 09:27:18 (GMT)
commitb541e58b7a2da25b453171de8020705ae63a74a0 (patch)
tree3861f9a5e222e84fd0053b2c11a7306e63bd3355 /Lib/test/test_wsgiref.py
parentccc546c658ff811d8a201af04c8258a46a69c086 (diff)
parent22f2c0e215e2abbe41f1bcf79043e1d36b5e8d9a (diff)
downloadcpython-b541e58b7a2da25b453171de8020705ae63a74a0.zip
cpython-b541e58b7a2da25b453171de8020705ae63a74a0.tar.gz
cpython-b541e58b7a2da25b453171de8020705ae63a74a0.tar.bz2
Merge with 3.5. Fix test_wsgiref execution from the test module.
Diffstat (limited to 'Lib/test/test_wsgiref.py')
-rw-r--r--Lib/test/test_wsgiref.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_wsgiref.py b/Lib/test/test_wsgiref.py
index 112a1b9..8cca595 100644
--- a/Lib/test/test_wsgiref.py
+++ b/Lib/test/test_wsgiref.py
@@ -1,11 +1,10 @@
-from __future__ import nested_scopes # Backward compat for 2.1
from unittest import TestCase
from wsgiref.util import setup_testing_defaults
from wsgiref.headers import Headers
from wsgiref.handlers import BaseHandler, BaseCGIHandler
from wsgiref import util
from wsgiref.validate import validator
-from wsgiref.simple_server import WSGIServer, WSGIRequestHandler, demo_app
+from wsgiref.simple_server import WSGIServer, WSGIRequestHandler
from wsgiref.simple_server import make_server
from io import StringIO, BytesIO, BufferedReader
from socketserver import BaseServer
@@ -14,8 +13,8 @@ from platform import python_implementation
import os
import re
import sys
+import unittest
-from test import support
class MockServer(WSGIServer):
"""Non-socket HTTP server"""