Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88cfd28

Browse files
Merge branch 'master' of https://github.com/matplotlib/matplotlib into cleanup
2 parents 4bb74b8 + d1f07d3 commit 88cfd28

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

lib/matplotlib/testing/decorators.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,6 @@ def _cleanup_cm():
3535
plt.close("all")
3636

3737

38-
def make_cleanup(func):
39-
if inspect.isgeneratorfunction(func):
40-
@functools.wraps(func)
41-
def wrapped_callable(*args, **kwargs):
42-
with _cleanup_cm(), matplotlib.style.context(style):
43-
yield from func(*args, **kwargs)
44-
else:
45-
@functools.wraps(func)
46-
def wrapped_callable(*args, **kwargs):
47-
with _cleanup_cm(), matplotlib.style.context(style):
48-
func(*args, **kwargs)
49-
50-
return wrapped_callable
51-
52-
if callable(style):
53-
result = make_cleanup(style)
54-
# Default of mpl_test_settings fixture and image_comparison too.
55-
style = ["classic", "_classic_test_patch"]
56-
return result
57-
else:
58-
return make_cleanup
59-
60-
6138
def check_freetype_version(ver):
6239
if ver is None:
6340
return True

0 commit comments

Comments
 (0)