Commit 9e7a0468 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Added regression test for issue24581.

parents b257eed0 af320b38
......@@ -1731,6 +1731,17 @@ class TestWeirdBugs(unittest.TestCase):
be_bad = True
set1.symmetric_difference_update(dict2)
def test_iter_and_mutate(self):
# Issue #24581
s = set(range(100))
s.clear()
s.update(range(100))
si = iter(s)
s.clear()
a = list(range(100))
s.update(range(100))
list(si)
# Application tests (based on David Eppstein's graph recipes ====================================
def powerset(U):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment