Tests failing with extraneous output due to log level #7026
Labels
C: tests
Testing and related things
state: awaiting PR
Feature discussed, PR is needed
type: maintenance
Related to Development and Maintenance Processes
Environment
Description
In #7023 there were test failures in Azure Pipelines CI for Windows. These seemed unrelated to the changes being made at the time.
The specific issue appeared to be related to unexpected log messages being traced by pep425tags, as indicated in output below. The log messages themselves are unexpected because the default log level in pip is WARNING, but these were DEBUG level. For the test in question there didn't appear to be any setting of the caplog level. There were some other tests which use
caplog.set_level(DEBUG)
, however the pytest docs indicate that the log level should be reset at the end of the tests.Expected behavior
Tests passing consistently.
How to Reproduce
It seems kind of arbitrary since other PRs around that time (e.g. #7025) did not fail. Creating a commit on top of 51d7a97 (the last commit for the PR where the issue was observed) and submitting a PR for it may do the trick.
Output
Python 2.7 - Windows x86 (link)
Python 3.7 - Windows x64 (link)
Additional Context
The text was updated successfully, but these errors were encountered: