aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2023-08-11 16:29:21 +0200
committerGravatar GitHub <[email protected]>2023-08-11 16:29:21 +0200
commit285d13632bcc7bb38c414ceb5e19edd9a968c78b (patch)
tree4c77b4cd6d7e0c9d097604e370f054a070646b3f /tests
parentBump regex from 2023.6.3 to 2023.8.8 (#2711) (diff)
parentBump ruff from 0.0.282 to 0.0.283 (diff)
Merge pull request #2710 from python-discord/dependabot/pip/ruff-0.0.283
Bump ruff from 0.0.282 to 0.0.283
Diffstat (limited to 'tests')
-rw-r--r--tests/_autospec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/_autospec.py b/tests/_autospec.py
index 6f990a580..a9cd59dc0 100644
--- a/tests/_autospec.py
+++ b/tests/_autospec.py
@@ -51,7 +51,7 @@ def autospec(target, *attributes: str, pass_mocks: bool = True, **patch_kwargs)
# Import the target if it's a string.
# This is to support both object and string targets like patch.multiple.
- if type(target) is str:
+ if isinstance(target, str):
target = pkgutil.resolve_name(target)
def decorator(func):