Commit 56bd1d04 authored by Tres Seaver's avatar Tres Seaver

Fix boneheaded regression test.

Using 'random' in a test exercising a known bug is a code stench.
parent a60b591d
......@@ -313,9 +313,11 @@ class BugFixes(unittest.TestCase):
t[id] = (id, ToBeDeleted(id), _u('somename'))
else:
#del
id = trandom.choice(list(ids.keys()))
del t[id]
del ids[id]
keys = list(ids.keys())
if keys:
id = trandom.choice(keys)
del t[id]
del ids[id]
ids = ids.keys()
trandom.shuffle(list(ids))
......
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