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 73c18e2

Browse filesBrowse files
committed
Test with Python 3.12
1 parent 85eadb3 commit 73c18e2
Copy full SHA for 73c18e2

File tree

Expand file treeCollapse file tree

2 files changed

+13
-6
lines changed
Filter options
Expand file treeCollapse file tree

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
@@ -67,6 +67,9 @@ jobs:
6767
extra-requirements: '-r requirements/testing/extra.txt'
6868
- os: ubuntu-20.04
6969
python-version: '3.11'
70+
extra-requirements: '-r requirements/testing/extra.txt'
71+
- os: ubuntu-latest
72+
python-version: '3.12-dev'
7073
- os: macos-latest
7174
python-version: 3.9
7275

@@ -212,13 +215,11 @@ jobs:
212215
python -c 'import PyQt5.QtCore' &&
213216
echo 'PyQt5 is available' ||
214217
echo 'PyQt5 is not available'
215-
if [[ "${{ runner.os }}" != 'macOS' ]]; then
216-
python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
217-
python -c 'import PySide2.QtCore' &&
218-
echo 'PySide2 is available' ||
219-
echo 'PySide2 is not available'
220-
fi
221218
if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
219+
python -mpip install --upgrade pyside2${{ matrix.pyside2-ver }} &&
220+
python -c 'import PySide2.QtCore' &&
221+
echo 'PySide2 is available' ||
222+
echo 'PySide2 is not available'
222223
python -mpip install --upgrade pyqt6${{ matrix.pyqt6-ver }} &&
223224
python -c 'import PyQt6.QtCore' &&
224225
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.