Skip to content

fix code-coverage in tests specifically the test_quoting module#1650

Open
Vizonex wants to merge 6 commits intoaio-libs:masterfrom
Vizonex:coverage-fix
Open

fix code-coverage in tests specifically the test_quoting module#1650
Vizonex wants to merge 6 commits intoaio-libs:masterfrom
Vizonex:coverage-fix

Conversation

@Vizonex
Copy link
Copy Markdown
Member

@Vizonex Vizonex commented Apr 7, 2026

What do these changes do?

This is a fix based on something I tried to help someone review rather recently #1642. I came to the conclusion that this module was the culprit for some the brokenness being experienced so I attempted to come up with a tiny solution to try and solve a large sum of it that requires a bit less code. Know that I didn't find a way to retain some ids but I'm sure this change is rather negligible. The percentage of code covered goes up by 1% but it should be enough to help #1642 pass.

Are there changes in behavior for the user?

This change should only affect how contributions are handled as well as relieve us of some problems. There is a similar problem with multidict that I attempted to also get my hands into rather recently. While waiting this is where I decided to go to next so now I am here, seems yarl contains similar issues where coverage is almost completely broken in some areas.

Related issue number

#1642

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Apr 7, 2026
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 7, 2026

Merging this PR will not alter performance

✅ 99 untouched benchmarks


Comparing Vizonex:coverage-fix (75d349f) with master (3ca1a90)

Open in CodSpeed

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 99.46%. Comparing base (3ca1a90) to head (75d349f).

Files with missing lines Patch % Lines
tests/test_quoting.py 93.75% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1650      +/-   ##
==========================================
- Coverage   99.47%   99.46%   -0.02%     
==========================================
  Files          30       30              
  Lines        5961     5955       -6     
  Branches      284      275       -9     
==========================================
- Hits         5930     5923       -7     
  Misses         22       22              
- Partials        9       10       +1     
Flag Coverage Δ
CI-GHA 99.46% <93.75%> (-0.02%) ⬇️
MyPy 97.87% <62.50%> (+0.23%) ⬆️
OS-Linux 99.66% <93.75%> (-0.05%) ⬇️
OS-Windows 98.64% <93.75%> (+0.21%) ⬆️
OS-macOS 98.64% <93.75%> (+0.07%) ⬆️
Py-3.10.11 98.61% <93.75%> (+0.21%) ⬆️
Py-3.10.20 99.61% <93.75%> (-0.03%) ⬇️
Py-3.11.15 99.61% <93.75%> (-0.03%) ⬇️
Py-3.11.9 98.61% <93.75%> (+0.21%) ⬆️
Py-3.12.10 98.61% <93.75%> (+0.21%) ⬆️
Py-3.12.13 99.61% <93.75%> (-0.03%) ⬇️
Py-3.13.12 99.66% <93.75%> (-0.03%) ⬇️
Py-3.13.13t 99.66% <93.75%> (-0.03%) ⬇️
Py-3.14.3 99.65% <93.75%> (-0.03%) ⬇️
Py-3.14.4 ?
Py-3.14.4t 99.65% <93.75%> (-0.03%) ⬇️
Py-pypy3.10.16-7.3.19 ?
VM-macos-latest 98.64% <93.75%> (+0.07%) ⬆️
VM-ubuntu-latest 99.66% <93.75%> (-0.05%) ⬇️
VM-windows-latest 98.64% <93.75%> (+0.21%) ⬆️
pytest 99.68% <93.75%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Vizonex Vizonex requested a review from webknjaz April 14, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant