From 6d472a10a1a0cf511ef42c57cda5545ff78d2c27 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 17 Sep 2024 20:00:06 -0500 Subject: [PATCH] PYTHON-4738 Skip encryption test_fork on PyPy (#1865) --- test/asynchronous/test_encryption.py | 1 + test/test_encryption.py | 1 + 2 files changed, 2 insertions(+) diff --git a/test/asynchronous/test_encryption.py b/test/asynchronous/test_encryption.py index f29b0f824..c3f622338 100644 --- a/test/asynchronous/test_encryption.py +++ b/test/asynchronous/test_encryption.py @@ -380,6 +380,7 @@ class TestClientSimple(AsyncEncryptionIntegrationTest): is_greenthread_patched(), "gevent and eventlet do not support POSIX-style forking.", ) + @unittest.skipIf("PyPy" in sys.version, "PYTHON-4738 fails often on PyPy") @async_client_context.require_sync async def test_fork(self): opts = AutoEncryptionOpts(KMS_PROVIDERS, "keyvault.datakeys") diff --git a/test/test_encryption.py b/test/test_encryption.py index 512c92f4d..43c85e2c5 100644 --- a/test/test_encryption.py +++ b/test/test_encryption.py @@ -380,6 +380,7 @@ class TestClientSimple(EncryptionIntegrationTest): is_greenthread_patched(), "gevent and eventlet do not support POSIX-style forking.", ) + @unittest.skipIf("PyPy" in sys.version, "PYTHON-4738 fails often on PyPy") @client_context.require_sync def test_fork(self): opts = AutoEncryptionOpts(KMS_PROVIDERS, "keyvault.datakeys")