Remove Python 3.10 support (#17160)

* Also upgrade Windows builds to Python 3.14

Closes #16916, Closes #16917
Authored by: bashonly, doe1080, Grub4K

Co-authored-by: doe1080 <98906116+doe1080@users.noreply.github.com>
Co-authored-by: Simon Sawicki <contact@grub4k.dev>
This commit is contained in:
bashonly
2026-10-21 22:04:43 +00:00
committed by GitHub
co-authored by doe1080 Simon Sawicki
parent 6ccd977303
commit 3d28cf4780
54 changed files with 124 additions and 1645 deletions
+6 -7
View File
@@ -426,15 +426,15 @@ class TestUtil(unittest.TestCase):
def test_datetime_round(self):
self.assertEqual(datetime_round(dt.datetime.strptime('1820-05-12T01:23:45Z', '%Y-%m-%dT%H:%M:%SZ')),
dt.datetime(1820, 5, 12, tzinfo=dt.timezone.utc))
dt.datetime(1820, 5, 12, tzinfo=dt.UTC))
self.assertEqual(datetime_round(dt.datetime.strptime('1969-12-31T23:34:45Z', '%Y-%m-%dT%H:%M:%SZ'), 'hour'),
dt.datetime(1970, 1, 1, 0, tzinfo=dt.timezone.utc))
dt.datetime(1970, 1, 1, 0, tzinfo=dt.UTC))
self.assertEqual(datetime_round(dt.datetime.strptime('2024-12-25T01:23:45Z', '%Y-%m-%dT%H:%M:%SZ'), 'minute'),
dt.datetime(2024, 12, 25, 1, 24, tzinfo=dt.timezone.utc))
dt.datetime(2024, 12, 25, 1, 24, tzinfo=dt.UTC))
self.assertEqual(datetime_round(dt.datetime.strptime('2024-12-25T01:23:45.123Z', '%Y-%m-%dT%H:%M:%S.%fZ'), 'second'),
dt.datetime(2024, 12, 25, 1, 23, 45, tzinfo=dt.timezone.utc))
dt.datetime(2024, 12, 25, 1, 23, 45, tzinfo=dt.UTC))
self.assertEqual(datetime_round(dt.datetime.strptime('2024-12-25T01:23:45.678Z', '%Y-%m-%dT%H:%M:%S.%fZ'), 'second'),
dt.datetime(2024, 12, 25, 1, 23, 46, tzinfo=dt.timezone.utc))
dt.datetime(2024, 12, 25, 1, 23, 46, tzinfo=dt.UTC))
def test_strftime_or_none(self):
self.assertEqual(strftime_or_none(-4722192000), '18200512')
@@ -2177,8 +2177,7 @@ Line 1
self.assertEqual(variadic(None), (None, ))
self.assertEqual(variadic('spam'), ('spam', ))
self.assertEqual(variadic('spam', allowed_types=dict), 'spam')
with warnings.catch_warnings():
warnings.simplefilter('ignore')
with warnings.catch_warnings(action='ignore'):
self.assertEqual(variadic('spam', allowed_types=[dict]), 'spam')
def test_http_header_dict(self):