File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2710,7 +2710,7 @@ async def test_8(self):
2710
2710
)
2711
2711
)
2712
2712
# 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 ) )
2714
2714
2715
2715
# Test requires mongocryptd/crypt_shared <8.1.
2716
2716
@async_client_context .require_version_max (8 , 1 , - 1 )
@@ -2742,7 +2742,7 @@ async def test_9(self):
2742
2742
)
2743
2743
)
2744
2744
# check that the exc contains the substring Upgrade
2745
- self .assertTrue ("Upgrade" in exc . msg )
2745
+ self .assertTrue ("Upgrade" in str ( exc ) )
2746
2746
2747
2747
2748
2748
# https://github.com/mongodb/specifications/blob/072601/source/client-side-encryption/tests/README.md#rewrap
Original file line number Diff line number Diff line change @@ -2694,7 +2694,7 @@ def test_8(self):
2694
2694
)
2695
2695
)
2696
2696
# 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 ) )
2698
2698
2699
2699
# Test requires mongocryptd/crypt_shared <8.1.
2700
2700
@client_context .require_version_max (8 , 1 , - 1 )
@@ -2726,7 +2726,7 @@ def test_9(self):
2726
2726
)
2727
2727
)
2728
2728
# check that the exc contains the substring Upgrade
2729
- self .assertTrue ("Upgrade" in exc . msg )
2729
+ self .assertTrue ("Upgrade" in str ( exc ) )
2730
2730
2731
2731
2732
2732
# https://github.com/mongodb/specifications/blob/072601/source/client-side-encryption/tests/README.md#rewrap
You can’t perform that action at this time.
0 commit comments