summaryrefslogtreecommitdiff
path: root/Lib/test/test_asyncio/test_futures.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-08-26 15:48:24 +0300
committerGitHub <noreply@github.com>2021-08-26 14:48:24 +0200
commit7dc505b8655b3e48b93a4274dfd26e5856d9c64f (patch)
tree37b7b69b36ba9ee715ecdbc2ea1926927d2eee33 /Lib/test/test_asyncio/test_futures.py
parent8868d48712aee2b490efaf60bed8dfe9fb14d6b7 (diff)
downloadcpython-git-7dc505b8655b3e48b93a4274dfd26e5856d9c64f.tar.gz
bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib/test/test_asyncio/test_futures.py')
-rw-r--r--Lib/test/test_asyncio/test_futures.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_futures.py b/Lib/test/test_asyncio/test_futures.py
index fe3d44227c..42b9499edd 100644
--- a/Lib/test/test_asyncio/test_futures.py
+++ b/Lib/test/test_asyncio/test_futures.py
@@ -918,6 +918,8 @@ class PyFutureInheritanceTests(BaseFutureInheritanceTests,
return futures._PyFuture
+@unittest.skipUnless(hasattr(futures, '_CFuture'),
+ 'requires the C _asyncio module')
class CFutureInheritanceTests(BaseFutureInheritanceTests,
test_utils.TestCase):
def _get_future_cls(self):