Skip to content

Fix tests against pytest 3.1 #8655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2017
Merged

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented May 23, 2017

Builds are currently broken as the latest pytest 3.1.0 has just hit the builders. It seems there's a bug in the Marker comparison function which breaks test collection.

This is a bit of a hack until the upstream bug is fixed, though I'd be open to just not allowing 3.1.0 instead. This is actually a bug but only surfaced due to another behavioural change in pytest.

Pytest 3.1 now has this plugin rolled into itself.
@QuLogic QuLogic added this to the 2.1 (next point release) milestone May 23, 2017
All because of the mixed subplots test which marks one extension as
xfail. This was technically not checked correctly, but ended up with the
same result of the 'svg' extension being treated as xfail.
@@ -94,7 +94,7 @@ install:
- echo %PYTHON_VERSION% %TARGET_ARCH%
- if %PYTHON_VERSION% == 2.7 conda install -q backports.functools_lru_cache
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
- pip install -q pytest "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout pytest-warnings pytest-xdist
- pip install -q pytest "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout pytest-xdist
Copy link
Member

Choose a reason for hiding this comment

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

do we not use pytest-warnings anymore?

Copy link
Member

Choose a reason for hiding this comment

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

it's explained in the git log message

Pytest 3.1 now has this plugin rolled into itself.

@tacaswell tacaswell merged commit 740ce99 into matplotlib:master May 23, 2017
@tacaswell
Copy link
Member

Merged despite my question to un-break master.

@QuLogic QuLogic deleted the fix-pytest31 branch May 23, 2017 21:36
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.

3 participants