8000 Refactor deprecated unittest aliases for Python 3.11 compatibility. by tirkarthi · Pull Request #223 · stravalib/stravalib · GitHub
[go: up one dir, main page]

Skip to content

Refactor deprecated unittest aliases for Python 3.11 compatibility. #223

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

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

tirkarthi
Copy link
Contributor

Deprecated unittest aliases were removed in Python 3.11 . The recommended aliases are present in both Python 2.7 and Python 3. So the PR is backwards compatible.

assertEquals -> assertEqual
assertAlmostEquals -> assertAlmostEqual

Ref : python/cpython#28268

@lwasser
Copy link
Collaborator
lwasser commented Oct 20, 2021

hey @tirkarthi THANK YOU so much for this PR!! i noticed warnings when running the test suite because of this. @hozn if you happen to see this, this PR is a great one to merge as it's triggering a lot of warnings when running tests.

@lwasser
Copy link
Collaborator
lwasser commented Dec 9, 2021

@hozn are you comfortable with merging this one as well? i was starting to implement this when running the tests. it will fix some of the warnings we are getting.

@hozn
Copy link
Collaborator
hozn commented Dec 16, 2021

Yes, I'm comfortable with this one too. Thanks!

@lwasser
Copy link
Collaborator
lwasser commented Dec 16, 2021

great! @tirkarthi thank you - merging this!!

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.

3 participants
0