summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-04-07 11:07:54 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-04-07 11:09:36 +0200
commitf55bcff9dcac1d0cb1f927f9fd543cfd567400c4 (patch)
treecf3ae7df3385002a8c56c2d83ac8e0c2bfa85f66
parent685721b4c5551c3ef755421c2f64c164e809c3b7 (diff)
[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
-rw-r--r--tests/model_enums/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/model_enums/tests.py b/tests/model_enums/tests.py
index 347c464a8c..b010b35594 100644
--- a/tests/model_enums/tests.py
+++ b/tests/model_enums/tests.py
@@ -311,8 +311,7 @@ class CustomChoicesTests(SimpleTestCase):
pass
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"