File tree Expand file tree Collapse file tree
Lib/test/test_interpreters Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99# Raise SkipTest if subinterpreters not supported.
1010_channels = import_helper .import_module ('_interpchannels' )
1111from concurrent import interpreters
12- from test .support import channels , nomemtest
12+ from test .support import channels
1313from .utils import _run_output , TestBase
1414
1515
@@ -30,24 +30,6 @@ def test_highlevel_reloaded(self):
3030 # See gh-115490 (https://github.com/python/cpython/issues/115490).
3131 importlib .reload (channels )
3232
33- @nomemtest
34- def test_lock_allocation_failure (self ):
35- # see gh-152635 (https://github.com/python/cpython/issues/152635)
36- # The first allocation to happen is the lock, which
37- # historically triggered an assert if alloc failed.
38- import _testcapi
39-
40- cid = None
41- try :
42- with self .assertRaises (MemoryError ):
43- _testcapi .set_nomemory (0 , 1 )
44- cid = _channels .create ()
45- finally :
46- _testcapi .remove_mem_hooks ()
47- if cid is not None :
48- _channels .close (cid , force = True )
49- _channels .destroy (cid )
50-
5133
5234class TestChannels (TestBase ):
5335
You can’t perform that action at this time.
0 commit comments