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') _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit