summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_httpserver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_httpserver.py b/tests/test_httpserver.py
index 4579802..a719788 100644
--- a/tests/test_httpserver.py
+++ b/tests/test_httpserver.py
@@ -1,4 +1,4 @@
-import mimetools
+import email
from paste.httpserver import WSGIHandler
from six.moves import StringIO
@@ -22,7 +22,7 @@ def test_environ():
wsgi_handler.command = 'GET'
wsgi_handler.path = '/path'
wsgi_handler.request_version = 'HTTP/1.0'
- wsgi_handler.headers = mimetools.Message(StringIO('Host: mywebsite'))
+ wsgi_handler.headers = email.message_from_string('Host: mywebsite')
wsgi_handler.wsgi_setup()