Skip to content

Commit

Permalink
Increase logger level for CLI tests. (conda#13291)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcel Bargull <[email protected]>
  • Loading branch information
jezdez and mbargull authored Nov 8, 2023
1 parent c715853 commit abd5873
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +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):
"Increasing the level to error to prevent retries show up in the stderr"
caplog.set_level(logging.ERROR, logger="urllib3.connectionpool")

0 comments on commit abd5873

Please sign in to comment.