Conversation
pip_cert is recognized as a generator so it should not use return if PIP_CERT is in os.environ. Fixes: pypa#2048
Codecov Report
@@ Coverage Diff @@
## main #2083 +/- ##
==========================================
- Coverage 93.72% 93.70% -0.03%
==========================================
Files 88 88
Lines 4383 4383
==========================================
- Hits 4108 4107 -1
- Misses 275 276 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
gaborbernat
left a comment
There was a problem hiding this comment.
Can you add some tests to this, please?
Do you know about a universal CA bundle I can use across all the systems you have in CI? It needs to be set before pytest is executed so I can imagine a new tox environment running only some tests with this environment variable set. Is it worth it given the fact that the whole fixture is just a workaround for a problem in pip and its author did not add tests for it? I can also imagine some dummy test exercising just the unused part of the fixture and actually testing nothing. |

pip_cert is recognized as a generator so it should not use
return if PIP_CERT is in os.environ.
Fixes: #2048
tox -e fix_lint)docs/changelogfolderI'm not sure this is testable easily given the fact that a CA cert bundle might be in various locations. Is a change in tests worth mentioning in the changelog?
Before this change:
after this change: