Skip to content

Commit 7b95e43

Browse files
Update pytest-cov requirement from <=6.1.1,>=2.6.0 to >=2.6.0,<=6.2.1 (#1780)
Updates the requirements on [pytest-cov](https://github.com/pytest-dev/pytest-cov) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst">pytest-cov's changelog</a>.</em></p> <blockquote> <h2>6.2.1 (2025-06-12)</h2> <ul> <li> <p>Added a version requirement for pytest's pluggy dependency (1.2.0, released 2023-06-21) that has the required new-style hookwrapper API.</p> </li> <li> <p>Removed deprecated license classifier (packaging).</p> </li> <li> <p>Disabled coverage warnings in two more situations where they have no value:</p> <ul> <li>&quot;module-not-measured&quot; in workers</li> <li>&quot;already-imported&quot; in subprocesses</li> </ul> </li> </ul> <h2>6.2.0 (2025-06-11)</h2> <ul> <li> <p>The plugin now adds 3 rules in the filter warnings configuration to prevent common coverage warnings being raised as obscure errors::</p> <p>default:unclosed database in &lt;sqlite3.Connection object at:ResourceWarning once::PytestCovWarning once::CoverageWarning</p> <p>This fixes most of the bad interactions that are occurring on pytest 8.4 with <code>filterwarnings=error</code>.</p> <p>The plugin will check if there already matching rules for the 3 categories (<code>ResourceWarning</code>, <code>PytestCovWarning</code>, <code>CoverageWarning</code>) and message (<code>unclosed database in &lt;sqlite3.Connection object at</code>) before adding the filters.</p> <p>This means you can have this in your pytest configuration for complete oblivion (not recommended, if that is not clear)::</p> <p>filterwarnings = [ &quot;error&quot;, &quot;ignore:unclosed database in &lt;sqlite3.Connection object at:ResourceWarning&quot;, &quot;ignore::PytestCovWarning&quot;, &quot;ignore::CoverageWarning&quot;, ]</p> </li> </ul> <h2>6.1.1 (2025-04-05)</h2> <ul> <li>Fixed breakage that occurs when <code>--cov-context</code> and the <code>no_cover</code> marker are used together.</li> </ul> <h2>6.1.0 (2025-04-01)</h2> <ul> <li>Change terminal output to use full width lines for the coverage header. Contributed by Tsvika Shapira in <code>[#678](pytest-dev/pytest-cov#678) &lt;https://github.com/pytest-dev/pytest-cov/pull/678&gt;</code>_.</li> <li>Removed unnecessary CovFailUnderWarning. Fixes <code>[#675](pytest-dev/pytest-cov#675) &lt;https://github.com/pytest-dev/pytest-cov/issues/675&gt;</code>_.</li> <li>Fixed the term report not using the precision specified via <code>--cov-precision</code>.</li> </ul> <p>6.0.0 (2024-10-29)</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/55dbe43f04f839b760ea346e560276d641998c77"><code>55dbe43</code></a> Bump version: 6.2.0 → 6.2.1</li> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/d17e9b765e9832e70fe8101daa2f5f42ce447cc2"><code>d17e9b7</code></a> Update changelog.</li> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/8964ab7595dd10748cad66376289476049340ea4"><code>8964ab7</code></a> Add a note for this warning disable.</li> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/e932e41e50f37d03a4d600084411661bc1f08ab8"><code>e932e41</code></a> Prevent unimported warnings @ pytest-xdist workers</li> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/573379ba34539db32cb3a43222f33b7c304af34a"><code>573379b</code></a> Bring pytest-cov's suprocess management in line with coverage's process_start...</li> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/f1884e854f2687ccfe36747a11e7f3352f168f90"><code>f1884e8</code></a> Fix xdist pin.</li> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/512c6699010cc0d8145f1f926d876cafba840015"><code>512c669</code></a> Added minium version requirements for pluggin (for new-style hookwrappers). P...</li> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/629ba644a56148d09fe0f2c20602681bc20027a7"><code>629ba64</code></a> Remove deprecated license classifier.</li> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/dca5723086a00e8c145a84761b0ce810a8079892"><code>dca5723</code></a> Bump version: 6.1.1 → 6.2.0</li> <li><a href="https://github.com/pytest-dev/pytest-cov/commit/f69166a08444db4736c611cdc7746eeac9a2f158"><code>f69166a</code></a> Also trigger the sqlite warning.</li> <li>Additional commits viewable in <a href="https://github.com/pytest-dev/pytest-cov/compare/v2.6.0...v6.2.1">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 7437f41 commit 7b95e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devtools/dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pre-commit <= 4.2.0
3030
nbmake <= 1.5.5
3131
pytest ~= 8.4
3232
pytest-benchmark <= 5.1.0
33-
pytest-cov >= 2.6.0, <= 6.1.1
33+
pytest-cov >= 2.6.0, <= 6.2.1
3434
pytest-monitor <= 1.6.6
3535
pytest-mpl == 0.16.1
3636
pytest-split >= 0.8.2, <= 0.10.0

0 commit comments

Comments
 (0)