Skip to content

PR: Restrict broken Pytest versions to those not affected by the Pytest 7.0.0 import-mode=importlib behavior regression#324

Merged
dalthviz merged 1 commit intospyder-ide:masterfrom
CAM-Gerlach:fix-pytest-7-regression
Feb 28, 2022
Merged

PR: Restrict broken Pytest versions to those not affected by the Pytest 7.0.0 import-mode=importlib behavior regression#324
dalthviz merged 1 commit intospyder-ide:masterfrom
CAM-Gerlach:fix-pytest-7-regression

Conversation

@CAM-Gerlach
Copy link
Copy Markdown
Member

@CAM-Gerlach CAM-Gerlach commented Feb 26, 2022

Presently, Pytest's --importmode=importlib causes our test suite to fail at collection due to a regression introduced in Pytest 7.0.0, pytest-dev/pytest#9645 . This was fixed in pytest-dev/pytest#9681 , but hasn't yet made it into a Pytest release. Therefore, we work around it for now by disabling --importmode=importlib.

Fixes #323

@CAM-Gerlach CAM-Gerlach added this to the v2.1.0 milestone Feb 26, 2022
@CAM-Gerlach CAM-Gerlach self-assigned this Feb 26, 2022
@CAM-Gerlach CAM-Gerlach changed the title Disable --importmode=importlib to work around pytest-dev/pytest#9645 PR: Disable --importmode=importlib to work aroud pytest-dev/pytest#9645 Feb 26, 2022
@CAM-Gerlach CAM-Gerlach linked an issue Feb 26, 2022 that may be closed by this pull request
@CAM-Gerlach CAM-Gerlach marked this pull request as draft February 26, 2022 05:48
@CAM-Gerlach CAM-Gerlach changed the title PR: Disable --importmode=importlib to work aroud pytest-dev/pytest#9645 PR: Restrict broken Pytest versions to those not affected by the Pytest 7.0.0 import-mode=importlib behavior regression Feb 26, 2022
@CAM-Gerlach CAM-Gerlach marked this pull request as ready for review February 26, 2022 06:40
Copy link
Copy Markdown
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CAM-Gerlach ! LGTM 👍

@dalthviz dalthviz merged commit 24fbb72 into spyder-ide:master Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix test suite failing at collection on Python 3.10 in Pytest 7.x

2 participants