hi Floris, On Wed, Sep 22, 2010 at 01:11 +0100, Floris Bruynooghe wrote: > Hi Holger > > I've updated my repo with the following changes: > > * Don't use py.test.config, using Holger's suggestion of an attribute > on AssertionError > * Renamed pytest_assert_compare to pytest_assert_binrepr > * Moved all tests to testing/plugin/test_pytest_assertion.py > * Implemented the default hook to pretty much mirror unittest2's behaviour. > * Added examples in doc/examples/assertion/failure_demo.py - I found > this easier to work with then the actual tests > > > I guess the main thing now is to fine-tune the default reporting for > various cases. I'm fairly tempted not to try and predict too much in > this area and rather wait to tune these till they come up.
Yes, this makes sense. I am eager to merge, a few things: * could you merge current py-trunk? * could you run tests on python3? * could you maybe look into the two failures i attached as test_bugs.py? (feel free to hang out/ask on #pylib - i should be there a lot this week and today). > Related to this you said you'd like to see "x in y" and "x != y" for > some types. Could you be more specific as I can't think of what you'd > like to do with "in" or "!=", I'm probably lacking creativity right > now... Let's see when i or someone else actually comes up with a concrete case :) > I'm happy to hear feedback anyone might have, I've probably still missed > things. Thanks already for your work, great additions. best, holger > > Regards > Floris > > -- > Debian GNU/Linux -- The Power of Freedom > www.debian.org | www.gnu.org | www.kernel.org > _______________________________________________ > py-dev mailing list > py-dev@codespeak.net > http://codespeak.net/mailman/listinfo/py-dev > --
def test_list_compare_bug(): x = ["123"] * 100 x2 = list(x) + ["456"] assert x == x2 def test_hang_in_diff(): x = "1\n" * 1000 + "abc" + "2\n" * 1000 y = "1\n" * 1000 + "def" + "2\n" * 1000 assert x == y
_______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev