summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-09-05 19:41:25 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-09-05 19:41:25 (GMT)
commit749022da3643d1693876b33bd6bb410a0c1e9c51 (patch)
tree421e4052361da8143f76c31b239fed3e1bb233c6 /Lib
parenta3acea3e07dba03a22dc35ca17ad83baa82e3729 (diff)
downloadcpython-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.py4
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