Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44c244c

Browse filesBrowse files
committed
Test with Python 3.12
1 parent a668754 commit 44c244c
Copy full SHA for 44c244c

File tree

2 files changed

+13
-6
lines changed
Filter options

2 files changed

+13
-6
lines changed

‎.github/workflows/tests.yml

Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+7-6Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
extra-requirements: '-r requirements/testing/extra.txt'
5757
- os: ubuntu-20.04
5858
python-version: '3.11'
59+
extra-requirements: '-r requirements/testing/extra.txt'
60+
- os: ubuntu-latest
61+
python-version: '3.12-dev'
5962
- os: macos-latest
6063
python-version: 3.8
6164

@@ -199,13 +202,11 @@ jobs:
199202
python -c 'import PyQt5.QtCore' &&
200203
echo 'PyQt5 is available' ||
201204
echo 'PyQt5 is not available'
202-
if [[ "${{ runner.os }}" != 'macOS' ]]; then
203-
python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
204-
python -c 'import PySide2.QtCore' &&
205-
echo 'PySide2 is available' ||
206-
echo 'PySide2 is not available'
207-
fi
208205
if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
206+
python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
207+
python -c 'import PySide2.QtCore' &&
208+
echo 'PySide2 is available' ||
209+
echo 'PySide2 is not available'
209210
python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} &&
210211
python -c 'import PyQt6.QtCore' &&
211212
echo 'PyQt6 is available' ||

‎lib/matplotlib/tests/test_agg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_agg.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ def test_pil_kwargs_tiff():
250250

251251

252252
def test_pil_kwargs_webp():
253+
Image.init()
254+
if "WEBP" not in Image.SAVE:
255+
pytest.skip("No WEBP support")
253256
plt.plot([0, 1, 2], [0, 1, 0])
254257
buf_small = io.BytesIO()
255258
pil_kwargs_low = {"quality": 1}
@@ -263,6 +266,9 @@ def test_pil_kwargs_webp():
263266

264267

265268
def test_webp_alpha():
269+
Image.init()
270+
if "WEBP" not in Image.SAVE:
271+
pytest.skip("No WEBP support")
266272
plt.plot([0, 1, 2], [0, 1, 0])
267273
buf = io.BytesIO()
268274
plt.savefig(buf, format="webp", transparent=True)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.