New issue 665: pytest.mark.skipif marker does not display / have correct source information https://bitbucket.org/hpk42/pytest/issue/665/pytestmarkskipif-marker-does-not-display
Daniel Hahler: When using the pytest.mark.skipif marker, the test summary does not report the location of the marker / test, but where `pytest.skip()` is being called internally: ======================================================================== short test summary info ======================================================================== SKIP [2] /path/to/pytest/_pytest/skipping.py:140: Django < 1.7 doesn't have migrations This is the code that calls it: @pytest.mark.tryfirst def pytest_runtest_setup(item): evalskip = MarkEvaluator(item, 'skipif') if evalskip.istrue(): pytest.skip(evalskip.getexplanation()) item._evalxfail = MarkEvaluator(item, 'xfail') check_xfail_no_run(item) _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit