FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: adopt the zc fixture across the remaining simple tests by bdraco · Pull Request #1876 · python-zeroconf/python-zeroconf · GitHub

Repository navigation

chore: adopt the zc fixture across the remaining simple tests - #1876

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

bdraco merged 1 commit into
masterfrom
dry_up_tests_3

Conversation

bdraco commented Aug 29, 2026

Copy link
Copy Markdown
Member

Summary

Third cleanup pass. Twenty six more tests across test_core, test_listener, test_updates and services/test_browser drop their hand rolled loopback Zeroconf construct and close boilerplate for the zc fixture. Conversion is scoped per function and only applies where the construct and close pair is the whole lifecycle; tests whose close is mid behavior stay as they are, and one test that patches the cache cleanup interval at construction time was restored to inline construction since the fixture builds the instance before a decorator patch takes effect.

The fixtures now depend on verify_threads_ended, pinning teardown order so the instance always closes before the thread leak check runs.

Test plan

  • full suite passes, lint clean

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 marked this pull request as ready for review August 29, 2026 22:36

codecov Bot commented Aug 29, 2026 •
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.87%. Comparing base (a1a61e9) to head (6834597).

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

☔ 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.

codspeed Bot commented Aug 29, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 24 untouched benchmarks


Comparing dry_up_tests_3 (6834597) with master (a1a61e9)

bdraco merged commit 9ddeffb into master Aug 29, 2026
41 checks passed
bdraco deleted the dry_up_tests_3 branch August 29, 2026 22:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL