File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3482,8 +3482,6 @@ class TestNoSessionsSupport(AsyncEncryptionIntegrationTest):
3482
3482
MONGOCRYPTD_PORT = 27020
3483
3483
3484
3484
async def asyncSetUp (self ) -> None :
3485
- if sys .implementation .name .lower () == "pypy" :
3486
- raise self .skipTest ("PYTHON-4982 Skipping test on pypy" )
3487
3485
await super ().asyncSetUp ()
3488
3486
start_mongocryptd (self .MONGOCRYPTD_PORT )
3489
3487
@@ -3496,6 +3494,8 @@ async def asyncSetUp(self) -> None:
3496
3494
self .assertNotIn ("logicalSessionTimeoutMinutes" , hello )
3497
3495
3498
3496
async def test_implicit_session_ignored_when_unsupported (self ):
3497
+ if sys .implementation .name .lower () == "pypy" :
3498
+ raise self .skipTest ("PYTHON-4982 Skipping test on pypy" )
3499
3499
self .listener .reset ()
3500
3500
with self .assertRaises (OperationFailure ):
3501
3501
await self .mongocryptd_client .db .test .find_one ()
@@ -3510,6 +3510,8 @@ async def test_implicit_session_ignored_when_unsupported(self):
3510
3510
await self .mongocryptd_client .close ()
3511
3511
3512
3512
async def test_explicit_session_errors_when_unsupported (self ):
3513
+ if sys .implementation .name .lower () == "pypy" :
3514
+ raise self .skipTest ("PYTHON-4982 Skipping test on pypy" )
3513
3515
self .listener .reset ()
3514
3516
async with self .mongocryptd_client .start_session () as s :
3515
3517
with self .assertRaisesRegex (
Original file line number Diff line number Diff line change @@ -3464,8 +3464,6 @@ class TestNoSessionsSupport(EncryptionIntegrationTest):
3464
3464
MONGOCRYPTD_PORT = 27020
3465
3465
3466
3466
def setUp (self ) -> None :
3467
- if sys .implementation .name .lower () == "pypy" :
3468
- raise self .skipTest ("PYTHON-4982 Skipping test on pypy" )
3469
3467
super ().setUp ()
3470
3468
start_mongocryptd (self .MONGOCRYPTD_PORT )
3471
3469
@@ -3478,6 +3476,8 @@ def setUp(self) -> None:
3478
3476
self .assertNotIn ("logicalSessionTimeoutMinutes" , hello )
3479
3477
3480
3478
def test_implicit_session_ignored_when_unsupported (self ):
3479
+ if sys .implementation .name .lower () == "pypy" :
3480
+ raise self .skipTest ("PYTHON-4982 Skipping test on pypy" )
3481
3481
self .listener .reset ()
3482
3482
with self .assertRaises (OperationFailure ):
3483
3483
self .mongocryptd_client .db .test .find_one ()
@@ -3492,6 +3492,8 @@ def test_implicit_session_ignored_when_unsupported(self):
3492
3492
self .mongocryptd_client .close ()
3493
3493
3494
3494
def test_explicit_session_errors_when_unsupported (self ):
3495
+ if sys .implementation .name .lower () == "pypy" :
3496
+ raise self .skipTest ("PYTHON-4982 Skipping test on pypy" )
3495
3497
self .listener .reset ()
3496
3498
with self .mongocryptd_client .start_session () as s :
3497
3499
with self .assertRaisesRegex (
You can’t perform that action at this time.
0 commit comments