Skip socket creation if add_multicast_member fails (windows)#341
Skip socket creation if add_multicast_member fails (windows)#341bdraco merged 3 commits intopython-zeroconf:masterfrom
Conversation
|
Since github is being unhelpful with running the CI, I mirrored this PR here bdraco#2 to get a run |
Fixes a regression caused by refactoring error in python-zeroconf#331
Codecov Report
@@ Coverage Diff @@
## master #341 +/- ##
==========================================
+ Coverage 91.08% 91.49% +0.40%
==========================================
Files 2 2
Lines 2671 2681 +10
Branches 360 362 +2
==========================================
+ Hits 2433 2453 +20
+ Misses 161 149 -12
- Partials 77 79 +2
Continue to review full report at Codecov.
|
|
These lines are uncovered now so not a new issue, but given this regressed, I could create tests that mock the |
|
Will pick this back up tomorrow as its late late here. |
I mean if you're felling like doing that I think it'll be nice to have. On a general note I think the whole socket-selecting layer needs to be separated from the rest of the code so that it can be unit tested nicely without any monkey patching etc. but that's more of a long-term plan. |
|
Version 0.30.0 has just been relased with this change. |
#339 with typing fixed
Fixes a regression caused by refactoring error in #331