diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-09-05 19:41:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-09-05 19:41:25 (GMT) |
commit | 749022da3643d1693876b33bd6bb410a0c1e9c51 (patch) | |
tree | 421e4052361da8143f76c31b239fed3e1bb233c6 /Lib | |
parent | a3acea3e07dba03a22dc35ca17ad83baa82e3729 (diff) | |
download | cpython-749022da3643d1693876b33bd6bb410a0c1e9c51.zip cpython-749022da3643d1693876b33bd6bb410a0c1e9c51.tar.gz cpython-749022da3643d1693876b33bd6bb410a0c1e9c51.tar.bz2 |
Issue #22340: Fix test_collections if the sets module was already imported
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_collections.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index 6c9c407..20e0667 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -14,8 +14,8 @@ from collections import Sized, Container, Callable from collections import Set, MutableSet from collections import Mapping, MutableMapping from collections import Sequence, MutableSequence -with test_support.check_warnings(('', DeprecationWarning)): - import sets +# Silence deprecation warning +sets = test_support.import_module('sets', deprecated=True) TestNT = namedtuple('TestNT', 'x y z') # type used for pickle tests |