]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
This test relied on short-circuiting details of dictobject.py to avoid
authorArmin Rigo <arigo@tunes.org>
Sun, 15 May 2005 13:29:26 +0000 (13:29 +0000)
committerArmin Rigo <arigo@tunes.org>
Sun, 15 May 2005 13:29:26 +0000 (13:29 +0000)
commit57179feec8b0b22a81ec70b4f4037a17f06fd415
tree93af30951953d1dda9a829471baac83b10e75491
parent174dd2219de2e9ff312d6541089d9d9b7ff785d6
This test relied on short-circuiting details of dictobject.py to avoid
crashing, and indirectly on the fact that hash codes in
random.randrange(1000000000) were very unlikely to exhibit collisions.
To see the problem, replace this number with 500 and observe the crash on
either del target[key] or del keys[i].

The fix prevents recursive mutation, just as in the key insertion case.
Lib/test/test_mutants.py