Commit 3af7370c authored by Victor Stinner's avatar Victor Stinner

Issue #22340: Fix test_collections if the sets module was already imported

parent 0fd7bbcb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment