bpo-23819: Fix asyncio tests on python optimized mode (GH-30195)

This commit is contained in:
Kumar Aditya 2021-12-26 16:43:14 +05:30 committed by GitHub
parent f9a4352056
commit a23ab7b6d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 4 deletions

View file

@ -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.