diff options
Diffstat (limited to 'dev-python/django/files')
-rw-r--r-- | dev-python/django/files/django-4.1.8-py311.patch | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/dev-python/django/files/django-4.1.8-py311.patch b/dev-python/django/files/django-4.1.8-py311.patch index 043b31a2c780..a84c9f4cb7e9 100644 --- a/dev-python/django/files/django-4.1.8-py311.patch +++ b/dev-python/django/files/django-4.1.8-py311.patch @@ -1,16 +1,28 @@ https://code.djangoproject.com/ticket/34118#comment:11 https://github.com/python/cpython/issues/102549 -https://github.com/django/django/commit/38e63c9e61152682f3ff982c85a73793ab6d3267 +https://github.com/django/django/commit/f55bcff9dcac1d0cb1f927f9fd543cfd567400c4 -Skip the test for now until upstream adapt it to the fix backported to Python 3.11 too. +From f55bcff9dcac1d0cb1f927f9fd543cfd567400c4 Mon Sep 17 00:00:00 2001 +From: Mariusz Felisiak <felisiak.mariusz@gmail.com> +Date: Fri, 7 Apr 2023 11:07:54 +0200 +Subject: [PATCH] [4.1.x] Refs #34118 -- Fixed + CustomChoicesTests.test_uuid_unsupported on Python 3.11.4+. + +https://github.com/python/cpython/commit/5342f5e713e0cc45b6f226d2d053a8cde1b4d68e + +Follow up to 38e63c9e61152682f3ff982c85a73793ab6d3267. + +Backport of 2eb1f37260f0e0b71ef3a77eb5522d2bb68d6489 from main --- a/tests/model_enums/tests.py +++ b/tests/model_enums/tests.py -@@ -310,7 +310,7 @@ class CustomChoicesTests(SimpleTestCase): - class Timezone(datetime.timezone, models.Choices): +@@ -311,8 +311,7 @@ class Timezone(datetime.timezone, models.Choices): pass -- def test_uuid_unsupported(self): -+ def _test_uuid_unsupported(self): - msg = "UUID objects are immutable" - with self.assertRaisesMessage(TypeError, msg): + def test_uuid_unsupported(self): +- msg = "UUID objects are immutable" +- with self.assertRaisesMessage(TypeError, msg): ++ with self.assertRaises(TypeError): + + class Identifier(uuid.UUID, models.Choices): + A = "972ce4eb-a95f-4a56-9339-68c208a76f18" |