Skip to content

Commit 25a5252

Browse files
committed
Skip test that fails randomly on PyPy.
Fix #1314.
1 parent 09875a6 commit 25a5252

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/sync/test_connection.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import contextlib
22
import logging
3+
import platform
34
import socket
45
import sys
56
import threading
@@ -465,6 +466,10 @@ def test_close_idempotency(self):
465466
self.connection.close()
466467
self.assertNoFrameSent()
467468

469+
@unittest.skipIf(
470+
platform.python_implementation() == "PyPy",
471+
"this test fails randomly due to a bug in PyPy", # see #1314 for details
472+
)
468473
def test_close_idempotency_race_condition(self):
469474
"""close waits if the connection is already closing."""
470475

0 commit comments

Comments
 (0)