Skip to content

Commit 6fddb9d

Browse files
committed
Add a simple test case.
1 parent aa0eeee commit 6fddb9d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/test/test_interpreters/test_stress.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ def run():
7474
start.set()
7575
support.gc_collect()
7676

77+
def create_interpreter_no_memory(self):
78+
_testcapi = import_helper.import_module("_testcapi")
79+
80+
with self.assertRaises(MemoryError):
81+
_testcapi.set_nomemory(0, 1)
82+
interpreters.create()
83+
7784

7885
if __name__ == '__main__':
7986
# Test needs to be a package, so we can do relative imports.

0 commit comments

Comments
 (0)