Commit 97a89080 authored by Tres Seaver's avatar Tres Seaver

(Re)fix boneheaded regression test.

Lost 56bd1d04 in a merge?
parent b6a1f722
...@@ -280,9 +280,11 @@ class BugFixes(unittest.TestCase): ...@@ -280,9 +280,11 @@ class BugFixes(unittest.TestCase):
t[id] = ToBeDeleted(id) t[id] = ToBeDeleted(id)
else: else:
#del #del
id = trandom.choice(list(ids.keys())) keys = list(ids.keys())
del t[id] if keys:
del ids[id] id = trandom.choice(list(ids.keys()))
del t[id]
del ids[id]
ids = ids.keys() ids = ids.keys()
trandom.shuffle(list(ids)) 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