bpo-32458: Temporarily mask start-tls proactor test on Windows (#5054) · python/cpython@0c36bed (original) (raw)
1
1
`"""Tests for asyncio/sslproto.py."""
`
2
2
``
``
3
`+
import os
`
3
4
`import logging
`
4
5
`import unittest
`
5
6
`from unittest import mock
`
`@@ -296,15 +297,16 @@ async def main():
`
296
297
``
297
298
``
298
299
`@unittest.skipIf(ssl is None, 'No ssl module')
`
299
``
`-
class SelectorStartTLS(BaseStartTLS, unittest.TestCase):
`
``
300
`+
class SelectorStartTLSTests(BaseStartTLS, unittest.TestCase):
`
300
301
``
301
302
`def new_loop(self):
`
302
303
`return asyncio.SelectorEventLoop()
`
303
304
``
304
305
``
305
306
`@unittest.skipIf(ssl is None, 'No ssl module')
`
306
307
`@unittest.skipUnless(hasattr(asyncio, 'ProactorEventLoop'), 'Windows only')
`
307
``
`-
class ProactorStartTLS(BaseStartTLS, unittest.TestCase):
`
``
308
`+
@unittest.skipIf(os.environ.get('APPVEYOR'), 'XXX: issue 32458')
`
``
309
`+
class ProactorStartTLSTests(BaseStartTLS, unittest.TestCase):
`
308
310
``
309
311
`def new_loop(self):
`
310
312
`return asyncio.ProactorEventLoop()
`