Skip to content

Fix incorrect assertion in test_get_ratio - #14273

Merged
AA-Turner merged 4 commits into
sphinx-doc:masterfrom
bodhisilberling:fix-test-get-ratio-assertion
Oct 23, 2026
Merged

AA-Turner merged 4 commits into
sphinx-doc:masterfrom
bodhisilberling:fix-test-get-ratio-assertion

Conversation

@bodhisilberling

Copy link
Copy Markdown
Contributor

The test was checking truthiness instead of verifying that get_ratio returns the expected VERSIONING_RATIO constant when one string is empty. Changed to properly compare using == operator with VERSIONING_RATIO.

Purpose

References

  • <...>
  • <...>
  • <...>

The test was checking truthiness instead of verifying that get_ratio
returns the expected VERSIONING_RATIO constant when one string is empty.
Changed to properly compare using == operator with VERSIONING_RATIO.
@jdillard jdillard added this to the 9.1.1 milestone Aug 13, 2026
@AA-Turner
AA-Turner merged commit 3a88c0d into sphinx-doc:master Oct 23, 2026
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants