Skip to content

Support for context managers in Zeroconf and AsyncZeroconf#284

Merged
bdraco merged 8 commits into
python-zeroconf:masterfrom
shenek:context-managers
Jun 6, 2021
Merged

Support for context managers in Zeroconf and AsyncZeroconf#284
bdraco merged 8 commits into
python-zeroconf:masterfrom
shenek:context-managers

Conversation

@shenek

@shenek shenek commented Jul 8, 2020

Copy link
Copy Markdown

closes #177

@coveralls

coveralls commented Jul 8, 2020

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.04%) to 92.633% when pulling 13b627c on shenek:context-managers into 19e33a6 on jstasiak:master.

@shenek shenek force-pushed the context-managers branch 3 times, most recently from feb2d7e to 5bfbfb5 Compare July 8, 2020 14:04
@shenek shenek force-pushed the context-managers branch from 5bfbfb5 to 13b627c Compare July 8, 2020 14:10
@bdraco

bdraco commented Jun 6, 2021

Copy link
Copy Markdown
Member

This seems reasonable considering how often we didn't close zeroconf in the tests which was fixed in #383

@bdraco bdraco changed the title Support for context managers in ZeroConf Support for context managers in Zeroconf Jun 6, 2021
@bdraco bdraco changed the title Support for context managers in Zeroconf Support for context managers in Zeroconf and AsyncZeroconf Jun 6, 2021
@codecov-commenter

codecov-commenter commented Jun 6, 2021

Copy link
Copy Markdown

Codecov Report

Merging #284 (a6eb18b) into master (6fafdee) will decrease coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #284      +/-   ##
==========================================
- Coverage   95.58%   95.49%   -0.10%     
==========================================
  Files           4        4              
  Lines        3261     3284      +23     
  Branches      406      402       -4     
==========================================
+ Hits         3117     3136      +19     
- Misses         86       89       +3     
- Partials       58       59       +1     
Impacted Files Coverage Δ
zeroconf/__init__.py 91.78% <100.00%> (-0.26%) ⬇️
zeroconf/asyncio.py 99.36% <100.00%> (+0.02%) ⬆️
zeroconf/test.py 98.84% <100.00%> (+<0.01%) ⬆️
zeroconf/test_asyncio.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ceb0def...a6eb18b. Read the comment docs.

@bdraco bdraco merged commit 4c4b529 into python-zeroconf:master Jun 6, 2021
@bdraco

bdraco commented Jun 6, 2021

Copy link
Copy Markdown
Member

Thanks @shenek

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.

Consider adding __enter__ and __exit__ magic methods

4 participants