Skip to content

Commit 0460beb

Browse files
committed
Fix skip test
1 parent a40e9c6 commit 0460beb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_tcp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,9 +1264,11 @@ class _TestSSL(tb.SSLTestCase):
12641264
TIMEOUT = 60
12651265

12661266
def test_start_tls_buffer_transfer(self):
1267-
if self.implementation == 'asyncio' and sys.version_info < (3, 11):
1267+
if self.implementation == 'asyncio' and sys.version_info[:2] <= (3, 11):
12681268
# StreamWriter.start_tls() introduced in Python 3.11
1269-
raise unittest.SkipTest()
1269+
raise unittest.SkipTest(
1270+
'StreamWriter.start_tls() not supported'
1271+
)
12701272

12711273
HELLO_MSG = b'1' * self.PAYLOAD_SIZE
12721274
BUFFERED_MSG = b'buffered data before TLS'

0 commit comments

Comments
 (0)