and let the assertion plugin handle the hook invocation
and its multi-results and also pass in an (optional) test config
object to the hook. Add and refactor also a few tests.
--HG--
branch : trunk
This stops difflib from printing many lines which had no change in
them anyway. It also avoids a bug in difflib which fails or hangs
when there are many trailing lines which are all identical.
--HG--
branch : trunk
Holger prefers to only have one hook and it also turns out that "in"
is actually a ast.Compare node as well too.
This also modifies the pytest_assert_binrepr hook slightly so that
it's more accomodating to other operators then just compare (i.e.
don't bail out as soon as the types of the operands differ).
--HG--
branch : trunk
Loading py.test.config triggers py.test initialisation while py.code
should stay independent of py.test. By adding the hook as an
attribute to py.test AssertionError py.code can get access to the
hooks only when py.test is loaded already.
--HG--
branch : trunk
Builtin plugins need to keep their import time to a minimum.
Therefore it's better to delay importing till you really need it, i.e.
use py.std.* in this case.
--HG--
branch : trunk