File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ jobs:
104104
105105 - uses : actions/setup-python@v4
106106 with :
107- python-version : " 3.11 "
107+ python-version : " 3.x "
108108
109109 - name : Prepare for build
110110 run : |
@@ -147,14 +147,13 @@ jobs:
147147 CIBW_BEFORE_ALL : " {package}\\ winbuild\\ build\\ build_dep_all.cmd"
148148 CIBW_CACHE_PATH : " C:\\ cibw"
149149 CIBW_TEST_SKIP : " *-win_arm64"
150- CIBW_TEST_COMMAND : >-
151- docker run --rm
150+ CIBW_TEST_COMMAND : ' docker run --rm
152151 -v {project}:C:\pillow
153152 -v C:\cibw:C:\cibw
154153 -v %CD%\..\venv-test:%CD%\..\venv-test
155154 -e CI -e GITHUB_ACTIONS
156155 mcr.microsoft.com/windows/servercore:ltsc2022
157- powershell C:\pillow\.github\workflows\wheels-test.ps1 %CD%\..\venv-test
156+ powershell C:\pillow\.github\workflows\wheels-test.ps1 %CD%\..\venv-test'
158157 shell : cmd
159158
160159 - name : Upload wheels
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ def djpeg_available():
263263 try :
264264 subprocess .check_call (["djpeg" , "-version" ])
265265 return True
266- except subprocess .CalledProcessError :
266+ except subprocess .CalledProcessError : # pragma: no cover
267267 return False
268268
269269
@@ -272,7 +272,7 @@ def cjpeg_available():
272272 try :
273273 subprocess .check_call (["cjpeg" , "-version" ])
274274 return True
275- except subprocess .CalledProcessError :
275+ except subprocess .CalledProcessError : # pragma: no cover
276276 return False
277277
278278
Original file line number Diff line number Diff line change 1111
1212
1313class TestImageGrab :
14+ @pytest .mark .skipif (
15+ os .environ .get ("USERNAME" ) == "ContainerAdministrator" ,
16+ reason = "can't grab screen when running in Docker" ,
17+ )
1418 @pytest .mark .skipif (
1519 sys .platform not in ("win32" , "darwin" ), reason = "requires Windows or macOS"
1620 )
1721 def test_grab (self ):
18- if os .environ .get ("USERNAME" ) == "ContainerAdministrator" :
19- pytest .skip ("can't grab screen when running in Docker" )
2022 ImageGrab .grab ()
2123 ImageGrab .grab (include_layered_windows = True )
2224 ImageGrab .grab (all_screens = True )
You can’t perform that action at this time.
0 commit comments