diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2021-12-26 11:13:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-26 11:13:14 (GMT) |
commit | a23ab7b6d8b3ae3a47747c0c4bceb2370cc48dcc (patch) | |
tree | a5bae88b99eebf1ac94a70964f5b6d0609942eda /Lib/test/test_asyncio/test_selector_events.py | |
parent | f9a4352056175d96195d4cb54c97c1334ea5150c (diff) | |
download | cpython-a23ab7b6d8b3ae3a47747c0c4bceb2370cc48dcc.zip cpython-a23ab7b6d8b3ae3a47747c0c4bceb2370cc48dcc.tar.gz cpython-a23ab7b6d8b3ae3a47747c0c4bceb2370cc48dcc.tar.bz2 |
bpo-23819: Fix asyncio tests on python optimized mode (GH-30195)
Diffstat (limited to 'Lib/test/test_asyncio/test_selector_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_selector_events.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py index 1613c75..b684fab 100644 --- a/Lib/test/test_asyncio/test_selector_events.py +++ b/Lib/test/test_asyncio/test_selector_events.py @@ -1,5 +1,6 @@ """Tests for selector_events.py""" +import sys import selectors import socket import unittest @@ -804,6 +805,7 @@ class SelectorSocketTransportTests(test_utils.TestCase): self.sock.close.assert_called_with() self.protocol.connection_lost.assert_called_with(None) + @unittest.skipIf(sys.flags.optimize, "Assertions are disabled in optimized mode") def test_write_ready_no_data(self): transport = self.socket_transport() # This is an internal error. |