We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0375ea4 commit 80be853Copy full SHA for 80be853
lib/matplotlib/testing/decorators.py
@@ -130,7 +130,7 @@ def cleanup(style=None):
130
# writing a decorator with optional arguments.
131
132
def make_cleanup(func):
133
- if inspect.isgenerator(func):
+ if inspect.isgeneratorfunction(func):
134
@functools.wraps(func)
135
def wrapped_callable(*args, **kwargs):
136
original_units_registry = matplotlib.units.registry.copy()
0 commit comments