Skip to content

Commit be039b5

Browse files
committed
Merge remote-tracking branch 'upstream/main' into msys
# Conflicts: # .github/workflows/test-msys2.yml
2 parents bd3bdbc + 4ab4bfe commit be039b5

120 files changed

Lines changed: 40 additions & 326 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.appveyor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ environment:
2121
install:
2222
- '%PYTHON%\%EXECUTABLE% --version'
2323
- curl -fsSL -o pillow-depends.zip https://github.com/python-pillow/pillow-depends/archive/main.zip
24+
- curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
2425
- 7z x pillow-depends.zip -oc:\
26+
- 7z x pillow-test-images.zip -oc:\
2527
- mv c:\pillow-depends-main c:\pillow-depends
26-
- xcopy /S /Y c:\pillow-depends\test_images\* c:\pillow\tests\images
28+
- xcopy /S /Y c:\test-images-main\* c:\pillow\tests\images
2729
- 7z x ..\pillow-depends\nasm-2.15.05-win64.zip -oc:\
2830
- ..\pillow-depends\gs1000w32.exe /S
2931
- path c:\nasm-2.15.05;C:\Program Files (x86)\gs\gs10.0.0\bin;%PATH%

.github/workflows/test-cygwin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
python3${{ matrix.python-minor-version }}-sip
6060
python3${{ matrix.python-minor-version }}-tkinter
6161
qt5-devel-tools
62-
subversion
62+
wget
6363
xorg-server-extra
6464
zlib-devel
6565

.github/workflows/test-msys2.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ jobs:
4444

4545
- name: Install dependencies
4646
run: |
47-
pacman -S --noconfirm \
48-
pactoys \
49-
subversion
47+
pacman -S --noconfirm pactoys
5048
5149
pacboy -S --noconfirm \
5250
freetype:p \

.github/workflows/test-windows.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
repository: python-pillow/pillow-depends
3939
path: winbuild\depends
4040

41+
- name: Checkout extra test images
42+
uses: actions/checkout@v3
43+
with:
44+
repository: python-pillow/test-images
45+
path: Tests\test-images
46+
4147
# sets env: pythonLocation
4248
- name: Set up Python
4349
uses: actions/setup-python@v4
@@ -62,7 +68,8 @@ jobs:
6268
winbuild\depends\gs1000w32.exe /S
6369
echo "C:\Program Files (x86)\gs\gs10.0.0\bin" >> $env:GITHUB_PATH
6470
65-
xcopy /S /Y winbuild\depends\test_images\* Tests\images\
71+
# Install extra test images
72+
xcopy /S /Y Tests\test-images\* Tests\images
6673
6774
# make cache key depend on VS version
6875
& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" `

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ docs/_build/
7979
# JetBrains
8080
.idea
8181

82-
# Extra test images installed from pillow-depends/test_images
82+
# Extra test images installed from python-pillow/test-images
8383
Tests/images/README.md
8484
Tests/images/crash_1.tif
8585
Tests/images/crash_2.tif

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.12.0
3+
rev: 23.1.0
44
hooks:
55
- id: black
66
args: [--target-version=py37]

Tests/check_fli_overflow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
def test_fli_overflow():
7-
87
# this should not crash with a malloc error or access violation
98
with Image.open(TEST_FILE) as im:
109
im.load()

Tests/check_png_dos.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def test_ignore_dos_text():
2323

2424

2525
def test_dos_text():
26-
2726
try:
2827
im = Image.open(TEST_FILE)
2928
im.load()

Tests/test_bmp_reference.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def test_bad():
1818
"""These shouldn't crash/dos, but they shouldn't return anything
1919
either"""
2020
for f in get_files("b"):
21-
2221
# Assert that there is no unclosed file warning
2322
with warnings.catch_warnings():
2423
try:

Tests/test_file_bmp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ def test_rgba_bitfields():
141141
# This test image has been manually hexedited
142142
# to change the bitfield compression in the header from XBGR to RGBA
143143
with Image.open("Tests/images/rgb32bf-rgba.bmp") as im:
144-
145144
# So before the comparing the image, swap the channels
146145
b, g, r = im.split()[1:]
147146
im = Image.merge("RGB", (r, g, b))

0 commit comments

Comments
 (0)