← 输入框|github.com|刷新
Skip to content

revert: remove the modernized port of the 2009 test suite - #1865

Merged
bdraco merged 1 commit into
masterfrom
remove_ported_2009_tests
Aug 29, 2026
Merged

bdraco merged 1 commit into
masterfrom
remove_ported_2009_tests

Conversation

@bdraco

@bdraco bdraco commented Aug 29, 2026

Copy link
Copy Markdown
Member

Summary

Twelfth removal pass for #1835, from an independent adversarial audit of the removal claims. Paul's 2009 ZeroconfTest.py survived as a mechanically modernized port that blame lost at the 2021 test split: eleven methods across test_init, test_protocol and test_core keep the 2009 method sequence, fixtures and assertions with only camelCase and API renames, at AST structure ratios up to 0.87. All eleven are deleted whole here.

The follow up rewrites the same coverage as freshly authored bare pytest functions, converts the surviving class based tests in those files to bare functions, which also retires the 2009 class names, and replaces the 2009 descended fixture values used across the suite.

Test plan

  • remaining tests in the three files pass; the deleted coverage returns rewritten in the follow up

@github-actions

Copy link
Copy Markdown

Thanks for contributing! A quick note: this project is in the process of moving from LGPL-2.1 to Apache 2.0, see #1835.

By continuing with this pull request you are okay with your contribution, and your previous contributions to this repository, being offered under Apache 2.0.

If that does not work for you, no hard feelings; reply with the exact phrase I do not agree to the Apache 2.0 license or simply close this pull request, and nothing of yours will be included in the change.

@bdraco
bdraco marked this pull request as ready for review August 29, 2026 21:27
@bdraco
bdraco merged commit 758f5f9 into master Aug 29, 2026
33 of 34 checks passed
@bdraco
bdraco deleted the remove_ported_2009_tests branch August 29, 2026 21:28
@codspeed

codspeed Bot commented Aug 29, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 24 untouched benchmarks


Comparing remove_ported_2009_tests (90490b3) with master (cb18924)

Open in CodSpeed

@codecov

codecov Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.81%. Comparing base (cb18924) to head (90490b3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1865      +/-   ##
==========================================
- Coverage   99.87%   99.81%   -0.06%     
==========================================
  Files          33       33              
  Lines        3882     3882              
  Branches      567      567              
==========================================
- Hits         3877     3875       -2     
- Misses          3        4       +1     
- Partials        2        3       +1     

☔ View full report in Codecov by Harness.
📢 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant