From a8c9b5b2636ebda87d938b61cbf4bfec476ca0c9 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 13 Oct 2025 16:34:26 +0200 Subject: [5.2.x] Refs #35844 -- Doc'd Python 3.14 compatibility. Backport of 56977b466c33ca3da14a1ed2609172425a76a34e from main. --- tests/mail/tests.py | 2 +- tests/requirements/py3.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/mail/tests.py b/tests/mail/tests.py index 833b688741..e017c7f9cf 100644 --- a/tests/mail/tests.py +++ b/tests/mail/tests.py @@ -185,7 +185,7 @@ class MailTests(MailTestsMixin, SimpleTestCase): """Line length check should encode the payload supporting `surrogateescape`. Following https://github.com/python/cpython/issues/76511, newer - versions of Python (3.11.9, 3.12.3 and 3.13) ensure that a message's + versions of Python (3.11.9, 3.12.3 and 3.13+) ensure that a message's payload is encoded with the provided charset and `surrogateescape` is used as the error handling strategy. diff --git a/tests/requirements/py3.txt b/tests/requirements/py3.txt index f0e208a115..a9679af97c 100644 --- a/tests/requirements/py3.txt +++ b/tests/requirements/py3.txt @@ -6,8 +6,8 @@ black docutils >= 0.19 geoip2 jinja2 >= 2.11.0 -numpy; python_version < '3.14' -Pillow >= 6.2.1; sys.platform != 'win32' or python_version < '3.14' +numpy +Pillow >= 6.2.1 # pylibmc/libmemcached can't be built on Windows. pylibmc; sys_platform != 'win32' pymemcache >= 3.4.0 -- cgit v1.3