New issue 748: pytest skip: short test summary info does not display actual 
test file
https://bitbucket.org/pytest-dev/pytest/issue/748/pytest-skip-short-test-summary-info-does

Thomas De Schampheleire:

In Kallithea, we have test code such as::

        if not ldap_lib_installed:
            raise SkipTest('skipping due to missing ldap lib')

where the test is derived from unittest.TestCase, and SkipTest is imported from 
nose.plugins.skip.

The 'short test summary info' provided by pytest displays::

    SKIP [3] /..../local/lib/python2.7/site-packages/_pytest/unittest.py:114: 
skipping due to missing ldap lib

This line refers to unittest.py (handling the skip), rather than the actual 
test file that _causes_ the skip.

What I expect is output like::

    SKIP [3] 
/..../kallithea/kallithea/tests/functional/test_admin_auth_settings.py:27: 
skipping due to missing ldap lib

Related issues were reported a long time ago (they should probably be 
fixed/closed together with this one):

- issue #157
- issue #114


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to