File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ def _isolated_tk_test(success_count, func=None):
20
20
21
21
TkAgg tests seem to have interactions between tests, so isolate each test
22
22
in a subprocess. See GH#18261
23
-
24
- The decorated function must be fully self-contained, and thus perform
25
- all the imports it needs.
26
23
"""
27
24
28
25
if func is None :
29
26
return functools .partial (_isolated_tk_test , success_count )
30
27
28
+ if "MPL_TEST_ESCAPE_HATCH" in os .environ :
29
+ return func
30
+
31
31
@functools .wraps (func )
32
32
def test_func ():
33
33
if (sys .platform == "linux" and
@@ -53,10 +53,8 @@ def test_func():
53
53
assert not [line for line in proc .stderr .splitlines ()
54
54
if "OpenGL" not in line ]
55
55
assert proc .stdout .count ("success" ) == success_count
56
- if "MPL_TEST_ESCAPE_HATCH" in os .environ :
57
- return func
58
- else :
59
- return test_func
56
+
57
+ return test_func
60
58
61
59
62
60
@_isolated_tk_test (success_count = 6 ) # len(bad_boxes)
You can’t perform that action at this time.
0 commit comments