diff options
author | Michael Merickel <michael@merickel.org> | 2018-10-06 13:17:31 -0500 |
---|---|---|
committer | Michael Merickel <michael@merickel.org> | 2018-10-06 13:18:50 -0500 |
commit | 4ae0ea00140daa24c5877566ae34c3c1340fe94b (patch) | |
tree | 0c34ae05222df2b9fe7ca7e95f161ff7bb4b14f5 /tests | |
parent | 18a9b5298038e7bf1aa047d4b539cf6a00f323b7 (diff) | |
download | webob-4ae0ea00140daa24c5877566ae34c3c1340fe94b.tar.gz |
use collections.abc for abc types if available
collections.MutableMapping and other abc types were deprecated in 3.3
and will be removed in 3.8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_request.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_request.py b/tests/test_request.py index 685c029..5d3ef4a 100644 --- a/tests/test_request.py +++ b/tests/test_request.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- -import collections import sys import warnings @@ -26,6 +25,7 @@ from webob.acceptparse import ( AcceptValidHeader, ) from webob.compat import ( + MutableMapping, bytes_, native_, text_type, @@ -3415,7 +3415,7 @@ class TestRequest_functional(object): # Cookies req.headers['Cookie'] = 'test=value' - assert isinstance(req.cookies, collections.MutableMapping) + assert isinstance(req.cookies, MutableMapping) assert list(req.cookies.items()) == [('test', 'value')] req.charset = None assert req.cookies == {'test': 'value'} |