diff --git a/tests/integrations/modules/test_modules.py b/tests/integrations/modules/test_modules.py index 76771be5fd..b552a14a1c 100644 --- a/tests/integrations/modules/test_modules.py +++ b/tests/integrations/modules/test_modules.py @@ -31,7 +31,7 @@ def test_basic(sentry_init, capture_events): def test_installed_modules(): try: - from importlib import distributions, version + from importlib.metadata import distributions, version importlib_available = True except ImportError: