Skip to content

Commit

Permalink
Merge branch 'master' into test_3.10a
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Jun 14, 2021
2 parents c079d3c + 6c0428b commit 43e99f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ between the implementation of generators and async functions.)

Only async functions have access to the special magic for suspending a
task, so only async functions can cause the program to switch to a
different task. What this means if a call *doesn't* have an ``await``
different task. What this means is that if a call *doesn't* have an ``await``
on it, then you know that it *can't* be a place where your task will
be suspended. This makes tasks much `easier to reason about
<https://glyph.twistedmatrix.com/2014/02/unyielding.html>`__ than
Expand All @@ -639,7 +639,7 @@ wouldn't have been able to pause at the end and wait for the children
to finish; we need our cleanup function to be async, which is exactly
what ``async with`` gives us.

Now, back to our execution trace. To recap: at this point ``parent``
Now, back to our execution point. To recap: at this point ``parent``
is waiting on ``child1`` and ``child2``, and both children are
sleeping. So :func:`trio.run` checks its notes, and sees that there's
nothing to be done until those sleeps finish – unless possibly some
Expand Down Expand Up @@ -1092,7 +1092,7 @@ up, and ``send_all`` will block until the remote side calls

Now let's think about this from the server's point of view. Each time
it calls ``receive_some``, it gets some data that it needs to send
back. And until it sends it back, the data is sitting around takes up
back. And until it sends it back, the data that is sitting around takes up
memory. Computers have finite amounts of RAM, so if our server is well
behaved then at some point it needs to stop calling ``receive_some``
until it gets rid of some of the old data by doing its own call to
Expand Down
5 changes: 4 additions & 1 deletion trio/tests/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ def ssl_echo_serve_sync(sock, *, expect_fail=False):
# it's fixed in 'recent' CPython versions so we fail
# the test for those and ignore it for earlier
# versions.
if sys.platform != "cpython" or sys.version_info >= (3, 8):
if (
sys.implementation.name != "cpython"
or sys.version_info >= (3, 8)
):
pytest.fail(
"still an issue on recent python versions "
"add a comment to "
Expand Down

0 comments on commit 43e99f8

Please sign in to comment.