]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix test_wsgiref execution from the test module.
authorSenthil Kumaran <senthil@uthcode.com>
Thu, 3 Sep 2015 09:26:31 +0000 (02:26 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Thu, 3 Sep 2015 09:26:31 +0000 (02:26 -0700)
Lib/test/test_wsgiref.py

index 5704fc782607a34062221572b4f1cefd5b2ffb89..638c432e7bd122940b342c715415a64cfe91aa36 100644 (file)
@@ -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"""