Skip to content

Commit 06ac994

Browse files
Jackevansevoclaude
andcommitted
test: Skip the package_version scan test below Python 3.8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f47e6a4 commit 06ac994

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/test_utils.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,7 @@ def test_package_version_is_none():
14121412
assert package_version("non_existent_package") is None
14131413

14141414

1415+
@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires importlib.metadata")
14151416
def test_package_version_does_not_scan_installed_packages():
14161417
with mock.patch("sentry_sdk.utils._generate_installed_modules") as generate:
14171418
with mock.patch("sentry_sdk.utils._installed_modules", None):

0 commit comments

Comments
 (0)