microsoft / knack

Knack - A Python command line interface framework
https://pypi.python.org/pypi/knack
MIT License
347 stars 95 forks source link

Always use unittest.mock rather than PyPI mock. #248

Closed musicinmybrain closed 3 years ago

musicinmybrain commented 3 years ago

Since only Python 3.6+ is supported, there is no need to use the mock backport package. This commit ensures that only the standard library’s unittest.mock is needed.

Replaces a mixture of conditional and unconditional imports of mock and/or unittest.mock with unconditional imports of unittest.mock, and drops mock from requirements.txt.

ghost commented 3 years ago

CLA assistant check
All CLA requirements met.

jiasli commented 3 years ago

Thanks for the contribution! Nice change!