diff --git a/tests/fields/test_enum_field.py b/tests/fields/test_enum_field.py index 384e9afd..fc42487b 100644 --- a/tests/fields/test_enum_field.py +++ b/tests/fields/test_enum_field.py @@ -118,5 +118,5 @@ class TestFunkyEnumField(MongoDBTestCase): m = ModelWithFunkyColor(color=FunkyColor.YELLOW) - with pytest.raises(InvalidDocument, match="cannot encode object"): + with pytest.raises(InvalidDocument, match="[cC]annot encode object"): m.save()