File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ def test_independent_subinterpreters():
58
58
interpreters .destroy (interp1 )
59
59
interpreters .destroy (interp2 )
60
60
61
- assert "does not support loading in subinterpreters" in res0 .msg , "cannot use shared_gil in a default subinterpreter"
61
+ assert "does not support loading in subinterpreters" in res0 .msg , (
62
+ "cannot use shared_gil in a default subinterpreter"
63
+ )
62
64
assert res1 != m .internals_at (), "internals should differ from main interpreter"
63
65
assert res2 != m .internals_at (), "internals should differ from main interpreter"
64
66
assert res1 != res2 , "internals should differ between interpreters"
@@ -70,6 +72,7 @@ def test_independent_subinterpreters():
70
72
"internals should be the same within the main interpreter"
71
73
)
72
74
75
+
73
76
@pytest .mark .skipif (
74
77
sys .platform .startswith ("emscripten" ), reason = "Requires loadable modules"
75
78
)
@@ -116,6 +119,7 @@ def test_dependent_subinterpreters():
116
119
117
120
# do this after the two interpreters are destroyed and only one remains
118
121
import mod_test_interpreters2 as m3
122
+
119
123
assert m .internals_at () == m3 .internals_at (), (
120
124
"internals should be the same within the main interpreter"
121
125
)
You can’t perform that action at this time.
0 commit comments