Skip to content

Commit a40e9c6

Browse files
committed
Skip test for Python versions before 3.11
1 parent 8d77cee commit a40e9c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_tcp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,8 @@ class _TestSSL(tb.SSLTestCase):
12641264
TIMEOUT = 60
12651265

12661266
def test_start_tls_buffer_transfer(self):
1267-
if self.implementation == 'asyncio':
1267+
if self.implementation == 'asyncio' and sys.version_info < (3, 11):
1268+
# StreamWriter.start_tls() introduced in Python 3.11
12681269
raise unittest.SkipTest()
12691270

12701271
HELLO_MSG = b'1' * self.PAYLOAD_SIZE

0 commit comments

Comments
 (0)