Skip to content

TST: Unblock Appveyor build by patching subprocess #9395

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

Conversation

Kojoley
Copy link
Member

@Kojoley Kojoley commented Oct 13, 2017

closes #9176

.appveyor.yml Outdated
@@ -95,6 +95,12 @@ install:
# 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

# Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
# https://github.com/matplotlib/matplotlib/issues/9176
- python -c "import sys; sys.exit((2,) > sys.version_info > (3,6,3))" && (
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be sys.exit((3,6,3) > sys.version_info > (2,)) ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I wrongly negated the (2,) < sys.version_info < (3,6,3) expression.

@tacaswell tacaswell added this to the 2.1.1 (next bug fix release) milestone Oct 13, 2017
@Kojoley Kojoley force-pushed the tst-appveyor-unblock-subprocess branch from 869b84d to 6e38b4f Compare October 13, 2017 19:17
.appveyor.yml Outdated
# https://github.com/matplotlib/matplotlib/issues/9176
- python -c "import sys; sys.exit(not (2,) < sys.version_info < (3,6,3))" && (
curl -sL https://github.com/python/cpython/pull/1224.patch |
patch -fsup 1 -d %CONDA_PREFIX% ) || ( set errorlevel= )
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought only Py3 was affected? Both from my (possibly incorrect) remembering of what used to fail and from https://bugs.python.org/issue30121#msg300658
If it's only a py3 issue then the lower bound should be (3,); if not we can just drop the lower bound (it's not as if we will ever support py1.5 anyways :-)).

Copy link
Member Author

Choose a reason for hiding this comment

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

The bug was fixed 4 years ago in Py2. Python >= 2.7.6 should not be affected.

@Kojoley Kojoley force-pushed the tst-appveyor-unblock-subprocess branch from 6e38b4f to 089fe86 Compare October 14, 2017 11:20
@tacaswell tacaswell merged commit 8b85dfb into matplotlib:master Oct 14, 2017
dstansby added a commit that referenced this pull request Oct 14, 2017
@Kojoley Kojoley deleted the tst-appveyor-unblock-subprocess branch January 5, 2020 21:15
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.

Appveyor build failing
3 participants