Skip to content

Commit

Permalink
bpo-30064: Fix unstable asyncio "racing" socket tests (GH-20485)
Browse files Browse the repository at this point in the history
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 84ee7e1)

Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
miss-islington and vstinner committed May 28, 2020
1 parent 8183e11 commit 1d82f00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/test/test_asyncio/test_sock_lowlevel.py
Expand Up @@ -2,6 +2,8 @@
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
Expand Down Expand Up @@ -232,6 +234,8 @@ async def _basetest_sock_connect_racing(self, listener, sock):
# 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()
Expand Down

0 comments on commit 1d82f00

Please sign in to comment.