Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit80be853

Browse files
committed
Merge pull request#6022 from anntzer/cleanup-generative-tests-again
Make@cleanup *really* support generative tests.
1 parent0375ea4 commit80be853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/matplotlib/testing/decorators.py‎

Lines 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
defmake_cleanup(func):
133-
ifinspect.isgenerator(func):
133+
ifinspect.isgeneratorfunction(func):
134134
@functools.wraps(func)
135135
defwrapped_callable(*args,**kwargs):
136136
original_units_registry=matplotlib.units.registry.copy()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp