Skip to content

Switch KI protection default from "unprotected" to "protected"#1567

Merged
oremanj merged 1 commit intopython-trio:masterfrom
njsmith:ki-default-disabled
Jun 1, 2020
Merged

Switch KI protection default from "unprotected" to "protected"#1567
oremanj merged 1 commit intopython-trio:masterfrom
njsmith:ki-default-disabled

Conversation

@njsmith
Copy link
Copy Markdown
Member

@njsmith njsmith commented Jun 1, 2020

This is mostly motivated by wanting to allow guest-mode (gh-1551) to
use our KI handling, where the host loop will presumably not be using
any of our KI protection markers. But I figured I'd split it out into
a separate PR rather than mix changes to the tricky KI code together
with changes to the tricky core run loop.

No newsfragment because I don't think this change is observable by
users.

This is mostly motivated by wanting to allow guest-mode (python-triogh-1551) to
use our KI handling, where the host loop will presumably not be using
any of our KI protection markers. But I figured I'd split it out into
a separate PR rather than mix changes to the tricky KI code together
with changes to the tricky core run loop.

No newsfragment because I don't think this change is observable by
users.
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 1, 2020

Codecov Report

Merging #1567 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1567   +/-   ##
=======================================
  Coverage   99.68%   99.68%           
=======================================
  Files         110      110           
  Lines       13466    13498   +32     
  Branches     1024     1027    +3     
=======================================
+ Hits        13423    13455   +32     
  Misses         28       28           
  Partials       15       15           
Impacted Files Coverage Δ
trio/_core/_run.py 99.73% <ø> (+<0.01%) ⬆️
trio/_core/_ki.py 98.50% <100.00%> (ø)
trio/_core/tests/test_ki.py 100.00% <100.00%> (ø)
trio/tests/test_socket.py 100.00% <0.00%> (ø)
trio/_core/tests/test_run.py 100.00% <0.00%> (ø)
trio/_highlevel_open_tcp_stream.py 96.96% <0.00%> (ø)
trio/tests/test_highlevel_socket.py 100.00% <0.00%> (ø)
trio/tests/test_highlevel_ssl_helpers.py 100.00% <0.00%> (ø)
trio/tests/test_highlevel_open_tcp_listeners.py 100.00% <0.00%> (ø)
trio/tests/test_ssl.py 99.86% <0.00%> (+<0.01%) ⬆️
... and 1 more

@oremanj oremanj merged commit dd4dbe0 into python-trio:master Jun 1, 2020
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.

2 participants