Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_weakref.py @ 39222:b0cdcbcc5f45
Get rid of most of the flags (in tp_flags) that keep track of various
variations of the type struct and its attachments. In Py3k, all type
structs have to have all fields -- no binary backwards compatibility.
Had to change the complex object to a new-style number!
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 27 Jul 2006 21:53:35 +0000 |
| parents | 19fd6141940d |
| children | 63237fcefd99 |
line wrap: on
line diff
--- a/Lib/test/test_weakref.py Thu Jun 08 15:35:45 2006 +0000 +++ b/Lib/test/test_weakref.py Thu Jul 27 21:53:35 2006 +0000 @@ -713,8 +713,7 @@ # dict, objects = self.make_weak_valued_dict() for o in objects: - self.assert_(weakref.getweakrefcount(o) == 1, - "wrong number of weak references to %r!" % o) + self.assertEqual(weakref.getweakrefcount(o), 1) self.assert_(o is dict[o.arg], "wrong object returned by weak dict!") items1 = dict.items()
