-
Notifications
You must be signed in to change notification settings - Fork 647
ci: 🤖 Update test matrix with new releases (07/27) #6891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
cb09f57
2728382
25a20cc
68a9d69
3db784a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,13 @@ | |
| from sentry_sdk._types import SENSITIVE_DATA_SUBSTITUTE | ||
| from sentry_sdk.integrations.logging import LoggingIntegration | ||
|
|
||
| try: | ||
| from importlib.metadata import version | ||
| except ImportError: | ||
| from importlib_metadata import version | ||
|
|
||
| QUART_VERSION = tuple([int(v) for v in version("quart").split(".")]) | ||
|
|
||
|
|
||
| def quart_app_factory(): | ||
| # These imports are inlined because the `test_quart_flask_patch` testcase | ||
|
|
@@ -399,16 +406,26 @@ async def error_handler(err): | |
|
|
||
| client = app.test_client() | ||
|
|
||
| with pytest.raises(ZeroDivisionError): | ||
| if QUART_VERSION >= (0, 21, 0): | ||
| # Exception propagation behavior changed in 0.21.0 | ||
| await client.get("/") | ||
|
|
||
| event1, event2 = events | ||
| (event,) = events | ||
|
|
||
| (exception,) = event1["exception"]["values"] | ||
| assert exception["type"] == "ValueError" | ||
| (exception,) = event["exception"]["values"] | ||
| assert exception["type"] == "ValueError" | ||
|
Comment on lines
+409
to
+416
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The version parsing for Suggested FixModify the version parsing logic to handle pre-release identifiers. Instead of a simple Prompt for AI Agent |
||
|
|
||
| exception = event2["exception"]["values"][-1] | ||
| assert exception["type"] == "ZeroDivisionError" | ||
| else: | ||
| with pytest.raises(ZeroDivisionError): | ||
| await client.get("/") | ||
|
|
||
| event1, event2 = events | ||
|
|
||
| (exception,) = event1["exception"]["values"] | ||
| assert exception["type"] == "ValueError" | ||
|
|
||
| exception = event2["exception"]["values"][-1] | ||
| assert exception["type"] == "ZeroDivisionError" | ||
|
|
||
|
|
||
| @pytest.mark.asyncio | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.