mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Added regression test for issue24581.
This commit is contained in:
commit
d6b0c4b8a4
1 changed files with 11 additions and 0 deletions
|
@ -1731,6 +1731,17 @@ class TestWeirdBugs(unittest.TestCase):
|
||||||
be_bad = True
|
be_bad = True
|
||||||
set1.symmetric_difference_update(dict2)
|
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 ====================================
|
# Application tests (based on David Eppstein's graph recipes ====================================
|
||||||
|
|
||||||
def powerset(U):
|
def powerset(U):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue