mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Fixes 9903: test_concurrent_futures writes on stderr
This commit is contained in:
parent
5ad8ed5f26
commit
1e2ae4f054
2 changed files with 30 additions and 19 deletions
|
|
@ -40,9 +40,8 @@ _STATE_TO_DESCRIPTION_MAP = {
|
|||
|
||||
# Logger for internal use by the futures package.
|
||||
LOGGER = logging.getLogger("concurrent.futures")
|
||||
_handler = logging.StreamHandler()
|
||||
LOGGER.addHandler(_handler)
|
||||
del _handler
|
||||
STDERR_HANDLER = logging.StreamHandler()
|
||||
LOGGER.addHandler(STDERR_HANDLER)
|
||||
|
||||
class Error(Exception):
|
||||
"""Base class for all future-related exceptions."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue