[Pytest-commit] Issue #712: some issue with setup and teardown in pytest suite (pytest-dev/pytest)

tibor_arpas issues-reply at bitbucket.org
Wed Apr 8 15:35:50 CEST 2015


New issue 712: some issue with setup and teardown in pytest suite
https://bitbucket.org/pytest-dev/pytest/issue/712/some-issue-with-setup-and-teardown-in

tibor_arpas:

I'm on platform 'darwin'. I select only one test, which by chance is skipped. I get an instead of a success.

py.test testing/test_argcomplete.py::TestArgComplete::test_compare_with_compgen
============================= test session starts ==============================
platform darwin -- Python 2.7.8 -- py-1.4.26 -- pytest-2.8.0.dev1
rootdir: /Users/tibor/tmonworkspace/pytest, inifile: tox.ini
collected 3 items 

testing/test_argcomplete.py sE

==================================== ERRORS ====================================
________ ERROR at teardown of TestArgComplete.test_compare_with_compgen ________

item = <Function 'test_compare_with_compgen'>
__multicall__ = <MultiCall 0 results, 2 meths, kwargs={'item': <Function 'test_compare_with_compgen'>, '__multicall__': <MultiCall 0 results, 2 meths, kwargs={...}>, 'nextitem': None}>

    def pytest_runtest_teardown(item, __multicall__):
>       item.config._basedir.chdir()
E       AttributeError: 'Config' object has no attribute '_basedir'

testing/conftest.py:70: AttributeError
=========================== short test summary info ============================
SKIP [1] /Users/tibor/tmonworkspace/pytest/_pytest/skipping.py:140: condition: sys.platform in ('win32', 'darwin')




More information about the pytest-commit mailing list