Skip to content

Commit e1047a3

Browse files
test(pyramid): Support alpha suffixes in version parsing (#5618)
1 parent e0dd66c commit e1047a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integrations/pyramid/test_pyramid.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pytest
77
from pyramid.authorization import ACLAuthorizationPolicy
88
from pyramid.response import Response
9+
from packaging.version import Version
910
from werkzeug.test import Client
1011

1112
from sentry_sdk import capture_message, add_breadcrumb
@@ -18,7 +19,7 @@
1819
try:
1920
from importlib.metadata import version
2021

21-
PYRAMID_VERSION = tuple(map(int, version("pyramid").split(".")))
22+
PYRAMID_VERSION = Version(version("pyramid")).release
2223

2324
except ImportError:
2425
# < py3.8

0 commit comments

Comments
 (0)