Skip to content

Commit 3197b91

Browse files
authored
Merge branch 'master' into release-0.5.0
2 parents 7a4325b + 6706f8b commit 3197b91

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/source/quickstart.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ But now we're using virtual time, so the call to ``await
137137
trio.sleep(1)`` takes *exactly* 1 virtual second, and the ``==`` test
138138
will pass every time. Before, we had to wait around for the test to
139139
complete; now, it completes essentially instantaneously. (Try it!)
140-
And, while here our example is super simple, it's integration with
140+
And, while here our example is super simple, its integration with
141141
Trio's core scheduling logic allows this to work for arbitrarily
142142
complex programs (as long as they aren't interacting with the outside
143143
world).
@@ -288,7 +288,7 @@ server. Sometimes this will work fine. But it takes a little while for
288288
the server to start up and be ready to accept connections – so other
289289
times, randomly, our connection attempt will happen too quickly, and
290290
error out. After all – ``nursery.start_soon`` only promises that the
291-
task will be started *soon*, not that it's actually happened. So this
291+
task will be started *soon*, not that it has actually happened. So this
292292
test will be flaky, and flaky tests are the worst.
293293

294294
Fortunately, Trio makes this easy to solve, by switching to using
@@ -338,7 +338,7 @@ Well, there's no way to predict the port ahead of time. But after
338338
:func:`~trio.serve_tcp` has opened a port, it can check and see what
339339
it got. So we need some way to pass this data back out of
340340
:func:`~trio.serve_tcp`. Fortunately, ``nursery.start`` handles this
341-
too: it lets the task pass out a piece of data after it's started. And
341+
too: it lets the task pass out a piece of data after it has started. And
342342
it just so happens that what :func:`~trio.serve_tcp` passes out is a
343343
list of :class:`~trio.SocketListener` objects. And there's a handy
344344
function called :func:`trio.testing.open_stream_to_socket_listener`

docs/source/reference.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ When Trio mode is enabled, two extra things happen:
1919
have to do it yourself.
2020
* Async fixtures using ``@pytest.fixture`` automatically get converted
2121
to Trio fixtures. (The main effect of this is that it helps you
22-
catch mistakes where a you use an async fixture with a non-async
22+
catch mistakes like using an async fixture with a non-async
2323
test.)
2424

2525
There are two ways to enable Trio mode.

pytest_trio/plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ def pytest_exception_interact(node, call, report):
9191
# and do something sensible with it.
9292
#
9393
# You should think of fixtures as a dependency graph: each fixtures *uses*
94-
# zero or more other fixtures, and is *used by* zero or more other fixtures. A
95-
# fixture should be setup before any of the fixtures it's used by are setup,
96-
# and it should be torn down as soon as all of the fixtures that use it are
97-
# torn down. And at root of this dependency graph, we have the test itself,
94+
# zero or more other fixtures, and is *used by* zero or more other fixtures.
95+
# A fixture should be setup before any of its dependees are setup, and torn
96+
# down once all of its dependees have terminated.
97+
# At the root of this dependency graph, we have the test itself,
9898
# which is just like a fixture except that instead of having a separate setup
9999
# and teardown phase, it runs straight through.
100100
#

0 commit comments

Comments
 (0)