summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 555181c..8ba6060 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -17,12 +17,11 @@ if not os.path.exists(egg_info_dir):
sys.path.append(os.path.dirname(egg_info_dir))
-import pkg_resources # noqa E402
+from paste.deploy.util import importlib_metadata # noqa E402
# Make absolutely sure we're testing *this* package, not
# some other installed package
-pkg_resources.require('PasteDeploy')
+importlib_metadata.distribution('PasteDeploy')
# ensure FakeApp is available for use by tests
-pkg_resources.working_set.add_entry(os.path.dirname(egg_info_dir))
-pkg_resources.require('FakeApp')
+importlib_metadata.distribution('FakeApp')