-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
TST: Unblock Appveyor build by patching subprocess
#9395
Conversation
.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))" && ( |
There was a problem hiding this comment.
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,))
?
There was a problem hiding this comment.
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.
869b84d
to
6e38b4f
Compare
.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= ) |
There was a problem hiding this comment.
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 :-)).
There was a problem hiding this comment.
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.
6e38b4f
to
089fe86
Compare
Backport PR #9395 on branch v2.1.x
closes #9176