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,7 +313,9 @@ class BugFixes(unittest.TestCase):
t[id] = (id, ToBeDeleted(id), _u('somename'))
else:
#del
id = trandom.choice(list(ids.keys()))
keys = list(ids.keys())
if keys:
id = trandom.choice(keys)
del t[id]
del ids[id]
......
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