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. |
||
---|---|---|
_pytest | ||
bench | ||
doc | ||
testing | ||
.hgignore | ||
.hgtags | ||
AUTHORS | ||
CHANGELOG | ||
ISSUES.txt | ||
LICENSE | ||
MANIFEST.in | ||
README.txt | ||
distribute_setup.py | ||
pytest.py | ||
setup.py | ||
tox.ini |
README.txt
py.test is a simple and popular testing tool for Python. See http://pytest.org for more documentation.