testing-cabal / testtools

Testtools - tasteful testing for python
https://testtools.readthedocs.io/en/latest/
Other
94 stars 88 forks source link

Upgrade asserts with teyit for Python 3.11 compatibility #319

Closed hugovk closed 2 years ago

hugovk commented 2 years ago

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 commented 2 years ago

What does "teyit" mean?

hugovk commented 2 years ago

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

stephenfin commented 2 years ago

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

hugovk commented 2 years ago

Hmm, strange the flag looks enabled for me:

image

Anyway, rebased!