-
Notifications
You must be signed in to change notification settings - Fork 426
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
Upgrade python to 3.11 #8434
Conversation
b7c1eaf
to
0f557e6
Compare
@@ -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"): |
There was a problem hiding this comment.
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>" |
There was a problem hiding this comment.
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.
2417525
to
1b9a35a
Compare
0f557e6
to
5ced7f2
Compare
8e7d8f4
to
2c9253e
Compare
2c9253e
to
0e54de6
Compare
@@ -4,7 +4,7 @@ | |||
|
|||
import colander | |||
import deform | |||
from jinja2 import Markup | |||
from markupsafe import Markup |
There was a problem hiding this comment.
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.
markupsafe | ||
jinja2 |
There was a problem hiding this comment.
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.
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
For hypothesis/product-backlog#1464
Handling the jinja2 upgrade here as well.