File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -35,29 +35,6 @@ def _cleanup_cm():
35
35
plt .close ("all" )
36
36
37
37
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
-
61
38
def check_freetype_version (ver ):
62
39
if ver is None :
63
40
return True
You can’t perform that action at this time.
0 commit comments