[Python-checkins] cpython (3.5): Sync asyncio with upstream git repo (conditional import in test_pep492.py).

guido.van.rossum python-checkins at python.org
Sat Dec 12 20:02:26 EST 2015


https://hg.python.org/cpython/rev/e911f05c945f
changeset: 99541:e911f05c945f
branch: 3.5
parent: 99536:850cc65ceda4
user: Guido van Rossum <guido at python.org>
date: Sat Dec 12 17:01:47 2015 -0800
summary:
 Sync asyncio with upstream git repo (conditional import in test_pep492.py).
files:
 Lib/test/test_asyncio/test_pep492.py | 5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py
--- a/Lib/test/test_asyncio/test_pep492.py
+++ b/Lib/test/test_asyncio/test_pep492.py
@@ -4,7 +4,10 @@
 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
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /