From 1a316e82f658868a1698ef167f62a49048b36685 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 12 Dec 2015 17:01:47 -0800 Subject: Sync asyncio with upstream git repo (conditional import in test_pep492.py). --- Lib/test/test_asyncio/test_pep492.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py index 404a748..29aba81 100644 --- a/Lib/test/test_asyncio/test_pep492.py +++ b/Lib/test/test_asyncio/test_pep492.py @@ -4,7 +4,10 @@ import collections.abc import types import unittest -from test import support +try: + from test import support +except ImportError: + from asyncio import test_support as support from unittest import mock import asyncio -- cgit v0.12