Skip to content

Commit ff300a9

Browse files
committed
fix typing
1 parent 1fb56b0 commit ff300a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/asynchronous/test_encryption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ async def test_8(self):
27102710
)
27112711
)
27122712
# check that the exc contains the substring not supported
2713-
self.assertTrue("not supported" in exc.msg)
2713+
self.assertTrue("not supported" in str(exc))
27142714

27152715
# Test requires mongocryptd/crypt_shared <8.1.
27162716
@async_client_context.require_version_max(8, 1, -1)
@@ -2742,7 +2742,7 @@ async def test_9(self):
27422742
)
27432743
)
27442744
# check that the exc contains the substring Upgrade
2745-
self.assertTrue("Upgrade" in exc.msg)
2745+
self.assertTrue("Upgrade" in str(exc))
27462746

27472747

27482748
# https://github.com/mongodb/specifications/blob/072601/source/client-side-encryption/tests/README.md#rewrap

test/test_encryption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2694,7 +2694,7 @@ def test_8(self):
26942694
)
26952695
)
26962696
# check that the exc contains the substring not supported
2697-
self.assertTrue("not supported" in exc.msg)
2697+
self.assertTrue("not supported" in str(exc))
26982698

26992699
# Test requires mongocryptd/crypt_shared <8.1.
27002700
@client_context.require_version_max(8, 1, -1)
@@ -2726,7 +2726,7 @@ def test_9(self):
27262726
)
27272727
)
27282728
# check that the exc contains the substring Upgrade
2729-
self.assertTrue("Upgrade" in exc.msg)
2729+
self.assertTrue("Upgrade" in str(exc))
27302730

27312731

27322732
# https://github.com/mongodb/specifications/blob/072601/source/client-side-encryption/tests/README.md#rewrap

0 commit comments

Comments
 (0)