Skip to content

Commit

Permalink
[4.1.x] Refs #34118 -- Fixed CustomChoicesTests.test_uuid_unsupported…
Browse files Browse the repository at this point in the history
… on Python 3.11.4+.

python/cpython@5342f5e

Follow up to 38e63c9.

Backport of 2eb1f37 from main
  • Loading branch information
felixxm committed Apr 7, 2023
1 parent 685721b commit f55bcff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/model_enums/tests.py
Expand Up @@ -311,8 +311,7 @@ class Timezone(datetime.timezone, models.Choices):
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"

0 comments on commit f55bcff

Please sign in to comment.