testing-cabal/testtools — pull request #13 by jml (2013-02-22 10:36:18+00:00)
Title: Make test pass with PyPy

Turns out that `object()` has a long `repr()` in PyPy. This means that the 'short objects' test was testing the wrong thing on PyPy, and thus failing spuriously.

Fix by adding a `CustomRepr` object that deliberately creates a short `__repr__`.