We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fddb9d commit 17e8ee9Copy full SHA for 17e8ee9
1 file changed
Lib/test/test_interpreters/test_stress.py
@@ -7,6 +7,7 @@
7
# Raise SkipTest if subinterpreters not supported.
8
import_helper.import_module('_interpreters')
9
from concurrent import interpreters
10
+from concurrent.interpreters import InterpreterError
11
from .utils import TestBase
12
13
@@ -74,12 +75,13 @@ def run():
74
75
start.set()
76
support.gc_collect()
77
- def create_interpreter_no_memory(self):
78
+ def test_create_interpreter_no_memory(self):
79
+ import _interpreters
80
_testcapi = import_helper.import_module("_testcapi")
81
- with self.assertRaises(MemoryError):
82
+ with self.assertRaises(InterpreterError):
83
_testcapi.set_nomemory(0, 1)
- interpreters.create()
84
+ _interpreters.create()
85
86
87
if __name__ == '__main__':
0 commit comments