forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6233770
commit a91903b
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
# Copyright (C) 2012 Anaconda, Inc | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
import logging | ||
|
||
import pytest | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def urllib3_logger_error(caplog): | ||
"Increasing the level to error to prevent retries show up in the stderr" | ||
caplog.set_level(logging.ERROR, logger="urllib3.connectionpool") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright (C) 2012 Anaconda, Inc | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
import logging | ||
|
||
import pytest | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def urllib3_logger_error(caplog): | ||
"""Increase log level to error to prevent retries from polluting stderr.""" | ||
caplog.set_level(logging.ERROR, logger="urllib3.connectionpool") |