Update sure to 2.x (#4357)

This commit is contained in:
Bert Blommers 2021-09-28 09:53:05 +00:00 committed by GitHub
parent 2db85d0e54
commit 31866fb5bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -128,6 +128,8 @@ class BaseMockAWS:
attr_value = getattr(klass, attr) attr_value = getattr(klass, attr)
if not hasattr(attr_value, "__call__"): if not hasattr(attr_value, "__call__"):
continue continue
if not hasattr(attr_value, "__name__"):
continue
# Check if this is a classmethod. If so, skip patching # Check if this is a classmethod. If so, skip patching
if inspect.ismethod(attr_value) and attr_value.__self__ is klass: if inspect.ismethod(attr_value) and attr_value.__self__ is klass:

View File

@ -1,5 +1,5 @@
pytest pytest
pytest-cov pytest-cov
sure==1.4.11 sure
freezegun freezegun
pylint pylint