summaryrefslogtreecommitdiff
path: root/Lib/test/test_importlib/test_contents.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_importlib/test_contents.py')
-rw-r--r--Lib/test/test_importlib/test_contents.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_importlib/test_contents.py b/Lib/test/test_importlib/test_contents.py
index 575dcd2f30..3323bf5b5c 100644
--- a/Lib/test/test_importlib/test_contents.py
+++ b/Lib/test/test_importlib/test_contents.py
@@ -15,8 +15,8 @@ class ContentsTests:
}
def test_contents(self):
- with util.suppress_known_deprecation():
- assert self.expected <= set(resources.contents(self.data))
+ contents = {path.name for path in resources.files(self.data).iterdir()}
+ assert self.expected <= contents
class ContentsDiskTests(ContentsTests, unittest.TestCase):