Commit 25b178a
committed
Remove the now-redundant (and incorrect) branch from
handle_channel_error
Tested locally with:
def test_lock_allocation_failure(self):
import _testcapi
for n in range(0, 100):
cid = None
try:
_testcapi.set_nomemory(n, n+1)
cid = _channels.create()
except MemoryError:
pass
finally:
_testcapi.remove_mem_hooks()
if cid is not None:
_channels.close(cid, force=True)
_channels.destroy(cid)1 parent b9182d3 commit 25b178a
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | 430 | | |
434 | 431 | | |
435 | 432 | | |
| |||
0 commit comments