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

This commit is contained in:
Victor Stinner 2014-09-05 21:41:25 +02:00
parent a3acea3e07
commit 749022da36
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ from collections import Sized, Container, Callable
from collections import Set, MutableSet from collections import Set, MutableSet
from collections import Mapping, MutableMapping from collections import Mapping, MutableMapping
from collections import Sequence, MutableSequence from collections import Sequence, MutableSequence
with test_support.check_warnings(('', DeprecationWarning)): # Silence deprecation warning
import sets sets = test_support.import_module('sets', deprecated=True)
TestNT = namedtuple('TestNT', 'x y z') # type used for pickle tests TestNT = namedtuple('TestNT', 'x y z') # type used for pickle tests