mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-30064: Fix unstable asyncio "racing" socket tests (GH-20485)
Skip new "racing" socket tests which fail randomly until someone fix
them, to ease analysis of buildbot failures (skip tests which are
known to be broken/unstable).
(cherry picked from commit 84ee7e1573
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
8183e11d87
commit
1d82f00367
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,8 @@ import socket
|
|||
import time
|
||||
import asyncio
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from asyncio import proactor_events
|
||||
from itertools import cycle, islice
|
||||
from test.test_asyncio import utils as test_utils
|
||||
|
@ -232,6 +234,8 @@ class BaseSockTestsMixin:
|
|||
# avoid touching event loop to maintain race condition
|
||||
time.sleep(0.01)
|
||||
|
||||
# FIXME: https://bugs.python.org/issue30064#msg370143
|
||||
@unittest.skipIf(True, "unstable test")
|
||||
def test_sock_client_racing(self):
|
||||
with test_utils.run_test_server() as httpd:
|
||||
sock = socket.socket()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue