joestump / python-oauth2

A fully tested, abstract interface to creating OAuth clients and servers.
MIT License
2.99k stars 912 forks source link

use unittest.mock instead of mock #243

Open pgajdos opened 2 years ago

pgajdos commented 2 years ago

I see you are still supporting Python 2, so dropping mock usage is not really an option, but could you please consider to fallback to unittest.mock when mock is not available?

Background: https://trello.com/c/S6eADbii/64-remove-python-mock https://fedoraproject.org/wiki/Changes/DeprecatePythonMock