[pypy-commit] pypy py3.6: Avoid import-time exception in test.test_asyncio.test_futures
rlamy
pypy.commits at gmail.com
Fri Aug 23 08:36:10 EDT 2019
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.6
Changeset: r97247:d7477dd3fb65
Date: 2019-08-23 13:35 +0100
http://bitbucket.org/pypy/pypy/changeset/d7477dd3fb65/
Log: Avoid import-time exception in test.test_asyncio.test_futures
diff --git a/lib-python/3/test/test_asyncio/test_futures.py b/lib-python/3/test/test_asyncio/test_futures.py
--- a/lib-python/3/test/test_asyncio/test_futures.py
+++ b/lib-python/3/test/test_asyncio/test_futures.py
@@ -534,7 +534,7 @@
@unittest.skipUnless(hasattr(futures, '_CFuture'),
'requires the C _asyncio module')
class CFutureTests(BaseFutureTests, test_utils.TestCase):
- cls = getattr(futures, '_CFuture')
+ cls = getattr(futures, '_CFuture', None)
class PyFutureTests(BaseFutureTests, test_utils.TestCase):
More information about the pypy-commit
mailing list