branch | 3.5 |
changeset 3146 | cfc4344023f2 |
parent 2635 | c94df21f7ab2 |
child 3293 | 69c0ba095536 |
--- a/test/unittest_utils.py Wed Sep 09 17:45:34 2009 +0200 +++ b/test/unittest_utils.py Wed Sep 09 17:46:30 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):