Issue #22340: Fix test_collections if the sets module was already imported
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 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