diff -r 9b28545de60d -r cfc4344023f2 test/unittest_utils.py --- 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):