[New-bugs-announce] [issue25367] test_coroutines fails with --without-threads
Arfrever Frehtes Taifersar Arahesis
report at bugs.python.org
Sat Oct 10 20:20:01 CEST 2015
New submission from Arfrever Frehtes Taifersar Arahesis:
test.test_coroutines.CoroAsyncIOCompatTest.test_asyncio_1() fails with --without-threads, because it imports asyncio module, which is known to not work with --without-threads.
This test should be skipped when import of asyncio fails.
======================================================================
ERROR: test_asyncio_1 (test.test_coroutines.CoroAsyncIOCompatTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/cpython/Lib/test/test_coroutines.py", line 1325, in test_asyncio_1
import asyncio
File "/tmp/cpython/Lib/asyncio/__init__.py", line 21, in <module>
from .base_events import *
File "/tmp/cpython/Lib/asyncio/base_events.py", line 18, in <module>
import concurrent.futures
File "/tmp/cpython/Lib/concurrent/futures/__init__.py", line 8, in <module>
from concurrent.futures._base import (FIRST_COMPLETED,
File "/tmp/cpython/Lib/concurrent/futures/_base.py", line 8, in <module>
import threading
File "/tmp/cpython/Lib/threading.py", line 4, in <module>
import _thread
ImportError: No module named '_thread'
----------------------------------------------------------------------
----------
components: Tests
messages: 252735
nosy: Arfrever, giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov
priority: normal
severity: normal
status: open
title: test_coroutines fails with --without-threads
versions: Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25367>
_______________________________________
More information about the New-bugs-announce
mailing list