test_ok2/_pytest/assertion
Floris Bruynooghe e2201fe3a9 Look up the pytest_assertrepr_compare hook for each test item
Before this was only done at the time the assertion plugin was loaded.
This lead to counter-intuitive behaviour where two subdirectories with
a pytest_assertrepr_compare hook in their conftest.py would not work,
only one would ever be used.

This defers assiging the _pytest.assertion.util._reprcompare function
until the item is loaded (pytest_runtest_setup) so that it can use the
hookrelay of the test item to find the appropriate
pytest_assertrepr_compare hook for the item.

This fixes issue #77.
2011-10-16 11:51:15 +01:00
..
__init__.py Look up the pytest_assertrepr_compare hook for each test item 2011-10-16 11:51:15 +01:00
newinterpret.py update assertion option names 2011-07-10 21:02:36 -05:00
oldinterpret.py update assertion option names 2011-07-10 21:02:36 -05:00
reinterpret.py import assertion code from pylib 2011-05-25 17:54:02 -05:00
rewrite.py cast boolean thing to int to make py3.3 happy 2011-10-14 18:08:10 -04:00
util.py put explanation simplification in format_explanation so everyone can benefit 2011-06-12 22:41:58 -05:00