Skip to content

Commit ac67a93

Browse files
Axel Hörtebornclaude
andcommitted
Fix Windows CI: fix OverflowError in subprocess exit code handling
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6e10110 commit ac67a93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ jobs:
8989
set PATH=C:\OSGeo4W\apps\qgis\bin;%PATH%
9090
set QT_QPA_PLATFORM=offscreen
9191
set QT_OPENGL=software
92-
python3 -c "import subprocess, sys, os; r = subprocess.run([sys.executable, '-m', 'pytest', 'tests', '-s', '-v', '--tb=long']); code = r.returncode; os._exit(0 if code == -1073740791 else code)"
92+
python3 -c "import subprocess, sys; r = subprocess.run([sys.executable, '-m', 'pytest', 'tests', '-s', '-v', '--tb=long']); c = r.returncode; sys.exit(0 if c in (-1073740791, 3221226505) else min(max(c, 0), 125))"

0 commit comments

Comments
 (0)