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 asserts with teyit for Python 3.11 compatibility #319

Merged
merged 2 commits into from
Apr 23, 2022

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Jan 10, 2022

Use https://github.com/isidentical/teyit to upgrade unittest asserts for better error messages.

Also assertEquals has been removed in 3.11, so use assertEqual instead.

https://docs.python.org/3.11/whatsnew/3.11.html


There are still some other things needed for 3.11 compatibility but this is a first step.

@hroncok
Copy link
Contributor

hroncok commented Jan 10, 2022

What does "teyit" mean?

@hugovk
Copy link
Contributor Author

hugovk commented Jan 10, 2022

It's this handy tool: https://github.com/isidentical/teyit

@stephenfin
Copy link
Contributor

Can you rebase this? The branch doesn't have the Allow edits from maintainers flag set to let me do it.

@hugovk
Copy link
Contributor Author

hugovk commented Feb 7, 2022

Hmm, strange the flag looks enabled for me:

image

Anyway, rebased!

@cjwatson cjwatson merged commit b5a7916 into testing-cabal:master Apr 23, 2022
@hugovk hugovk deleted the fix-3.11 branch April 23, 2022 19:55
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.

4 participants