Skip to content

bpo-30064: Fix unstable asyncio "racing" socket tests #20485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Lib/test/test_asyncio/test_sock_lowlevel.py
Original file line number Diff line number Diff line change
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