MCPcopy Index your code
hub / github.com/python/cpython / test_tee_del_backward

Method test_tee_del_backward

Lib/test/test_itertools.py:1395–1402  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1393
1394 # Issue 13454: Crash when deleting backward iterator from tee()
1395 def test_tee_del_backward(self):
1396 forward, backward = tee(repeat(None, 20000000))
1397 try:
1398 any(forward) # exhaust the iterator
1399 del backward
1400 except:
1401 del forward, backward
1402 raise
1403
1404 def test_tee_reenter(self):
1405 class I:

Callers

nothing calls this directly

Calls 2

repeatFunction · 0.50
anyFunction · 0.50

Tested by

no test coverage detected