Skip to content

Commit a84ad22

Browse files
committed
Skip the failing multithreading test
1 parent fb79fc5 commit a84ad22

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_sync_query.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import decimal
2121
import json
2222
import random
23+
import sys
2324
import threading
2425
import time
2526
import uuid
@@ -677,6 +678,16 @@ def __int__(self):
677678
arg="10.2")
678679

679680
def test_sync_wait_cancel_01(self):
681+
if sys.platform == 'darwin' and sys.version_info >= (3, 13):
682+
# On macOS with Python 3.13+ the test hangs indefinitely because
683+
# OpenSSL socket is not thread-safe, and sending TERMINATE_MSG is
684+
# blocked by a concurrent recv() call waiting for the lock.
685+
# This may happen to any environment, so maybe we should consider
686+
# dropping the test entirely if it happens again.
687+
self.skipTest(
688+
"known OpenSSL misuse: hangs on macOS with Python 3.13+"
689+
)
690+
680691
underscored_lock = self.client.query_single("""
681692
SELECT EXISTS(
682693
SELECT schema::Function FILTER .name = 'sys::_advisory_lock'

0 commit comments

Comments
 (0)