Closed tirkarthi closed 3 years ago
Instead of using six (which looks a bit messy - I don't think we need to support python 2), could this just replace assertRaisesRegexp with assertRaisesRegex? This should solve all compatibility problems (unless I've missed something). Thanks!
The project had Python 2.7 classifier and I assumed it supports Python 2.7 but I will be happy to remove six code if you can confirm Python 2.7 is no longer supported.
I can confirm that Python 2.7 should no longer be supported in this project.
The deprecated aliases were removed in Python 3.11 in https://github.com/python/cpython/pull/28268 . Use six for a compatible function present in both Python 2 and Python 3.