diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2015-04-28 09:49:48 -0700 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2015-04-28 09:49:48 -0700 |
commit | 26c50f6db3d342d11dbbf86470d9b64cf3fe1db5 (patch) | |
tree | 20db85bff8aa760851fedc04394ef13305956715 | |
parent | 69e40c88fb262931f39f52e0abc11e51ca0590bd (diff) | |
download | paste-git-26c50f6db3d342d11dbbf86470d9b64cf3fe1db5.tar.gz |
tests/test_httpserver.py: Use `email` module instead of `mimetools`
because `mimetools` is deprecated and doesn't work in Python 3.
-rw-r--r-- | tests/test_httpserver.py | 4 |
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() |