jplana / python-etcd

A python client for etcd
Other
522 stars 210 forks source link

Use assertEqual for Python 3.11 compatibility #279

Closed hugovk closed 1 year ago

hugovk commented 2 years ago

assertEquals has been deprecated since Python 3.2 and is removed in 3.11. Use assertEqual instead.

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

hugovk commented 1 year ago

Update:

This was retained in Python 3.11 (released October 2022), but has already been removed in Python 3.12 (set for release October 2023):

I still recommend merging this fix. However, I also see there's been no commits for ~six years, so closing this year-old PR, but happy to re-open if there's interest 👍