mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
bpo-23819: Fix asyncio tests on python optimized mode (GH-30195)
This commit is contained in:
parent
f9a4352056
commit
a23ab7b6d8
5 changed files with 9 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue