From ec6734d4f35fb05365bca143495c97d360dff527 Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Wed, 17 Jun 2026 09:03:05 -0400 Subject: [PATCH] PYTHON-5858 fix flipped conditional "!=" was accidentally changed to "is" in d88aaa6cfdb05599a79f60a2cbea5513f3788f6c. This commit fixes it to "is not". --- test/asynchronous/test_encryption.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/asynchronous/test_encryption.py b/test/asynchronous/test_encryption.py index 86172b4993..57acf5824e 100644 --- a/test/asynchronous/test_encryption.py +++ b/test/asynchronous/test_encryption.py @@ -2922,7 +2922,7 @@ async def encrypt_and_cast(i): EncryptionError, "expected matching 'min' and value type. Got range option" ): await self.client_encryption.encrypt( - 6 if cast_func is int else float(6), + 6 if cast_func is not int else float(6), key_id=self.key1_id, algorithm=Algorithm.RANGE, contention_factor=0,