[4.1.x] Refs #34118 -- Fixed CustomChoicesTests.test_uuid_unsupported on Python 3.11.4+.
5342f5e713
Follow up to 38e63c9e61152682f3ff982c85a73793ab6d3267.
Backport of 2eb1f37260f0e0b71ef3a77eb5522d2bb68d6489 from main
This commit is contained in:
parent
685721b4c5
commit
f55bcff9dc
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user