MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_tee_del_backward

Method test_tee_del_backward

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

Source from the content-addressed store, hash-verified

1345
1346 # Issue 13454: Crash when deleting backward iterator from tee()
1347 def test_tee_del_backward(self):
1348 forward, backward = tee(repeat(None, 20000000))
1349 try:
1350 any(forward) # exhaust the iterator
1351 del backward
1352 except:
1353 del forward, backward
1354 raise
1355
1356 def test_tee_reenter(self):
1357 class I:

Callers

nothing calls this directly

Calls 2

repeatFunction · 0.85
anyFunction · 0.50

Tested by

no test coverage detected