test_ok1/testing
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
..
acceptance_test.py try to make test suite pass on jython 2.5.1 again 2011-09-21 08:12:37 +02:00
conftest.py jython-2.5.2 has a core bug preventing pytest to run :( 2011-08-19 19:25:52 +02:00
test_assertinterpret.py refactor explanation formatting things into their own module 2011-05-26 12:01:34 -05:00
test_assertion.py Look up the pytest_assertrepr_compare hook for each test item 2011-10-16 11:51:15 +01:00
test_assertrewrite.py put the explanation generating code in the conditional fail body (fixes #79) 2011-10-14 16:26:13 -04:00
test_capture.py refine and unify initial capturing - now works also if the logging module 2011-01-18 12:51:21 +01:00
test_collection.py cause configure hooks to be called 2011-05-26 18:10:49 -05:00
test_config.py correctly handle zero length cmdline arguments 2011-09-25 23:26:49 +02:00
test_conftest.py try to make test suite pass on jython 2.5.1 again 2011-09-21 08:12:37 +02:00
test_core.py enhance debug tracing: print trace tags at the end of message and forget about "prefix". 2011-07-14 19:11:50 +02:00
test_doctest.py fix a buffering issue that i think/hope only occurs during internal tests 2011-05-29 09:21:48 +02:00
test_genscript.py also un-nest test directory 2010-11-13 11:30:40 +01:00
test_helpconfig.py enhance debug tracing: print trace tags at the end of message and forget about "prefix". 2011-07-14 19:11:50 +02:00
test_junitxml.py put systemout/systemerr to correct xml location 2011-07-13 18:47:27 +02:00
test_mark.py fix issue48 - test and fix typo in MarkInfo repr 2011-06-01 08:03:06 +02:00
test_monkeypatch.py streamline docs, especially use "import pytest" and "pytest.*" in python code examples instead of "import py" and "py.test.*". 2010-11-17 22:12:16 +01:00
test_nose.py fix issue53: nose-style setup now called with the correct ordering 2011-07-05 21:23:59 +02:00
test_parseopt.py streamline docs, especially use "import pytest" and "pytest.*" in python code examples instead of "import py" and "py.test.*". 2010-11-17 22:12:16 +01:00
test_pastebin.py streamline docs, especially use "import pytest" and "pytest.*" in python code examples instead of "import py" and "py.test.*". 2010-11-17 22:12:16 +01:00
test_pdb.py support pytest.set_trace in collection 2011-08-01 10:53:37 +02:00
test_pytester.py Allow unicode characters in testdir.makepyfile() 2011-04-11 23:15:56 +01:00
test_python.py back out pytest_configure_funcargs hook for now 2011-06-01 15:08:54 +02:00
test_recwarn.py streamline docs, especially use "import pytest" and "pytest.*" in python code examples instead of "import py" and "py.test.*". 2010-11-17 22:12:16 +01:00
test_resultlog.py refine plugin registration, allow new "-p no:NAME" way to prevent/undo plugin registration 2010-12-06 16:54:42 +01:00
test_runner.py also accept non-pytrace pytest.fail() call in setup/teardown methods 2010-11-24 16:43:55 +01:00
test_runner_xunit.py make test name shorter, so its testdir path isn't too long on windows 2011-07-07 09:43:39 -05:00
test_session.py refine plugin registration, allow new "-p no:NAME" way to prevent/undo plugin registration 2010-12-06 16:54:42 +01:00
test_skipping.py add a reportchar for reporting errors, fixes #76 2011-09-29 23:44:26 +02:00
test_terminal.py enhance debug tracing: print trace tags at the end of message and forget about "prefix". 2011-07-14 19:11:50 +02:00
test_tmpdir.py refine tmpdir handling and docs 2010-11-21 17:43:18 +01:00
test_unittest.py unittest plugin: prune __unittest marked modules from traces 2011-03-05 17:49:51 +01:00