]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-30064: Fix unstable asyncio "racing" socket tests (GH-20485)
authorVictor Stinner <vstinner@python.org>
Thu, 28 May 2020 14:08:50 +0000 (16:08 +0200)
committerGitHub <noreply@github.com>
Thu, 28 May 2020 14:08:50 +0000 (16:08 +0200)
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).

Lib/test/test_asyncio/test_sock_lowlevel.py

index 5e6a90abb46cf54e80458fe170094bfb5af7a9bb..e0583c041956411013e41c89f335caf791d0394e 100644 (file)
@@ -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()