Skip to content
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

Upgrade python to 3.11 #8434

Merged
merged 8 commits into from
Jan 22, 2024
Merged

Upgrade python to 3.11 #8434

merged 8 commits into from
Jan 22, 2024

Conversation

marcospri
Copy link
Member

@marcospri marcospri commented Jan 12, 2024

For hypothesis/product-backlog#1464

Handling the jinja2 upgrade here as well.

@@ -156,7 +156,7 @@ def test_type_raises_for_unknown_type_of_group(factories):
def test_you_cannot_set_type(factories):
group = factories.Group()

with pytest.raises(AttributeError, match="can't set attribute"):
with pytest.raises(AttributeError, match="object has no setter"):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New version of python produces a new string for the error

@@ -9,5 +9,5 @@ def test___repr__(self):

assert (
repr(subscription)
== "<Subscription uri=http://example.com type=reply active=True>"
== "<Subscription uri=http://example.com type=Type.REPLY active=True>"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the need for this repr and this test but I will just make it pass in the new python version.

@@ -4,7 +4,7 @@

import colander
import deform
from jinja2 import Markup
from markupsafe import Markup
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrading jinja requires some changes of imports.

Comment on lines +40 to +41
markupsafe
jinja2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer need to pin these. We support the latest.

@marcospri marcospri requested a review from seanh January 18, 2024 13:04
@marcospri marcospri merged commit 8a6b594 into main Jan 22, 2024
9 checks passed
@marcospri marcospri deleted the upgrade-python branch January 22, 2024 10:15
Copy link

sentry-io bot commented Jan 22, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ AttributeError: 'UserNotFoundError' object has no attribute 'message' admin.users_delete View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants