From 94a7e813b1de820531603113e38fa95746010f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sun, 1 Nov 2020 19:37:13 +0100 Subject: [PATCH] fix difference in test for certain version of pymongo --- tests/fields/test_enum_field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()