From 5ea7f93dcdd3d78082a03310e847d4e646ff4fbb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 17 Oct 2013 14:23:17 -0700 Subject: Make asyncio tests run on Windows. --- Lib/test/test_asyncio/test_streams.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_asyncio/test_streams.py') diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index 011a09da3a1..31d81514365 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -1,9 +1,12 @@ """Tests for streams.py.""" import gc -import ssl import unittest import unittest.mock +try: + import ssl +except ImportError: + ssl = None from asyncio import events from asyncio import streams -- cgit v1.2.3