summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2015-04-28 09:49:48 -0700
committerMarc Abramowitz <marc@marc-abramowitz.com>2015-04-28 09:49:48 -0700
commitd2ff513fbb1f16adfd2d7f7c84d5ec4b04457237 (patch)
tree20db85bff8aa760851fedc04394ef13305956715 /tests
parent9b68e059e73c44bfc03b906f2271c8ac49aabcfb (diff)
downloadpaste-d2ff513fbb1f16adfd2d7f7c84d5ec4b04457237.tar.gz
tests/test_httpserver.py: Use `email` module instead of `mimetools`
because `mimetools` is deprecated and doesn't work in Python 3.
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()