Skip to content

Commit a56edf3

Browse files
tacaswellMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #9395: TST: Unblock Appveyor build by patching subprocess
1 parent f96e833 commit a56edf3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.appveyor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ install:
9595
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
9696
- pip install -q pytest "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout
9797

98+
# Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
99+
# https://github.com/matplotlib/matplotlib/issues/9176
100+
- python -c "import sys; sys.exit(not (3,) < sys.version_info < (3,6,3))" && (
101+
curl -sL https://github.com/python/cpython/pull/1224.patch |
102+
patch -fsup 1 -d %CONDA_PREFIX% ) || ( set errorlevel= )
103+
98104
# Let the install prefer the static builds of the libs
99105
- set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib
100106
- mkdir lib || cmd /c "exit /b 0"

0 commit comments

Comments
 (0)