branch | 3.5 |
changeset 3316 | c4c07aab1c39 |
parent 3146 | cfc4344023f2 |
parent 3231 | 3ee43e2f8560 |
child 4023 | eae23c40627a |
child 4212 | ab6573088b4a |
--- a/test/unittest_utils.py Fri Sep 18 11:06:42 2009 +0200 +++ b/test/unittest_utils.py Fri Sep 18 12:20:39 2009 +0200 @@ -21,12 +21,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):