changeset 3163 | edfe43ceaa35 |
parent 3146 | cfc4344023f2 |
child 3293 | 69c0ba095536 |
--- a/test/unittest_utils.py Wed Sep 02 16:42:07 2009 +0200 +++ b/test/unittest_utils.py Thu Sep 10 08:13:22 2009 +0200 @@ -17,12 +17,12 @@ self.assertNotEquals(make_uid('xyz'), make_uid('xyz')) def test_2(self): - d = {} + d = set() while len(d)<10000: uid = make_uid('xyz') - if d.has_key(uid): + if uid in d: self.fail(len(d)) - d[uid] = 1 + d.add(uid) class UStringIOTC(TestCase):