Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bdaefb9

Browse filesBrowse files
tacaswellbearstrong
authored andcommitted
Merge pull request matplotlib#6022 from anntzer/cleanup-generative-tests-again
Make @cleanup *really* support generative tests.
1 parent 1382cee commit bdaefb9
Copy full SHA for bdaefb9

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎lib/matplotlib/testing/decorators.py

Copy file name to clipboardExpand all lines: lib/matplotlib/testing/decorators.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def cleanup(style=None):
130130
# writing a decorator with optional arguments.
131131

132132
def make_cleanup(func):
133-
if inspect.isgenerator(func):
133+
if inspect.isgeneratorfunction(func):
134134
@functools.wraps(func)
135135
def wrapped_callable(*args, **kwargs):
136136
original_units_registry = matplotlib.units.registry.copy()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.