pytest: Regression in 3.7.0: AttributeError for _collectfile
I get AttributeError: 'FlakesItem' object has no attribute '_collectfile'
when running devpi-server tests with tox (tox -e py27
is enough) since pytest 3.7.0. When I pin to pytest<3.7dev
it works (using 3.6.4).
It seems to be related to the current working directory. The tox config switches to test_devpi_server
. When I run pytest in server
it’s fine, when i run in server/test_devpi_server
it breaks.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (6 by maintainers)
Commits related to this issue
- Add example script and failure for #3742 — committed to nicoddemus/pytest by nicoddemus 6 years ago
- mark the failing test for #3742 as strict xfail so we can merge the pr about testing — committed to nicoddemus/pytest by RonnyPfannschmidt 6 years ago
- Temporary fix pytest version, https://github.com/pytest-dev/pytest/issues/3742 — committed to Kozea/sherlog by grewn0uille 6 years ago
- Freeze pytest==3.6.*. Regression in pytest-dev/pytest#3742 https://github.com/pytest-dev/pytest/issues/3742 — committed to micro-fan/aiozk by cybergrind 6 years ago
- Merge pull request #3751 from nicoddemus/collect-file-bug Workaround for #3742 — committed to pytest-dev/pytest by RonnyPfannschmidt 6 years ago
- Add changelog for #3742 This was missing from PR #3751 — committed to pytest-dev/pytest by nicoddemus 6 years ago
- Update pytest to 3.7.1 (#24) This PR updates [pytest](https://pypi.org/project/pytest) from **3.7.0** to **3.7.1**. <details> <summary>Changelog</summary> ### 3.7.1 ``` ... — committed to cmccandless/tools by pyup-bot 6 years ago
- Merge #26 26: Update pytest to 3.7.1 r=rehandalal a=pyup-bot This PR updates [pytest](https://pypi.org/project/pytest) from **3.7.0** to **3.7.1**. <details> <summary>Changelog</summary> ... — committed to rehandalal/therapist by bors[bot] 6 years ago
- Better the fix for #3742. — committed to jonozzz/pytest by deleted user 6 years ago
- Update pytest to 3.7.1 (#1247) This PR updates [pytest](https://pypi.org/project/pytest) from **3.6.2** to **3.7.1**. <details> <summary>Changelog</summary> ### 3.7.1 ``` ... — committed to mozilla/telemetry-analysis-service by pyup-bot 6 years ago
- Update pytest to 3.7.2 (#8) This PR updates [pytest](https://pypi.org/project/pytest) from **3.6.4** to **3.7.2**. <details> <summary>Changelog</summary> ### 3.7.2 ``` =... — committed to cmccandless/multisite by pyup-bot 6 years ago
- Scheduled monthly dependency update for October (#389) ### Update [wheel](https://pypi.org/project/wheel) from **0.31.1** to **0.32.0**. <details> <summary>Changelog</summary> ... — committed to guykisel/inline-plz by pyup-bot 6 years ago
In our team we’re suffering the same problem, we had to fix the pytest version to 3.6.4 to avoid this regression.
same all issues that are triggered by
_collectfile
missing on 3rd party items are due to this one its an entirely unintended issueSame here with flake8: