There was an error while loading. Please reload this page.
test_interpreters.test_stress
1 parent bfb01d8 commit 3206fc7Copy full SHA for 3206fc7
1 file changed
Lib/test/test_interpreters/test_stress.py
@@ -25,6 +25,7 @@ def test_create_many_sequential(self):
25
del alive
26
support.gc_collect()
27
28
+ @threading_helper.requires_working_threading()
29
@support.bigmemtest(size=200, memuse=32*2**20, dry_run=False)
30
def test_create_many_threaded(self, size):
31
alive = []
@@ -80,9 +81,12 @@ def test_create_interpreter_no_memory(self):
80
81
import _testcapi
82
83
assertion = self.assertRaises(InterpreterError)
- _testcapi.set_nomemory(0, 1)
84
- with assertion:
85
- _interpreters.create()
+ try:
+ _testcapi.set_nomemory(0, 1)
86
+ with assertion:
87
+ _interpreters.create()
88
+ finally:
89
+ _testcapi.remove_mem_hooks()
90
91
92
if __name__ == '__main__':
0 commit comments