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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| newinterpret.py | ||
| oldinterpret.py | ||
| reinterpret.py | ||
| rewrite.py | ||
| util.py | ||