Skip to content

Commit 8bf4d5d

Browse files
committed
Use ASCII dashes
1 parent e7debcb commit 8bf4d5d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/source/quickstart.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ If you need to support Python 3.5, which doesn't allow ``yield``
183183
inside an ``async def`` function, then you can define async fixtures
184184
using the `async_generator
185185
<https://async-generator.readthedocs.io/en/latest/reference.html>`__
186-
library just make sure to put the ``@pytest.fixture`` *above* the
186+
library - just make sure to put the ``@pytest.fixture`` *above* the
187187
``@async_generator``.
188188

189189

@@ -232,7 +232,7 @@ Here's a first attempt::
232232

233233
This will mostly work, but it has a few problems. The most obvious one
234234
is that when we run it, even if everything works perfectly, it will
235-
hang at the end of the test we never shut down the server, so the
235+
hang at the end of the test - we never shut down the server, so the
236236
nursery block will wait forever for it to exit.
237237

238238
To avoid this, we should cancel the nursery at the end of the test:
@@ -292,9 +292,9 @@ you afterwards:
292292
Next problem: we have a race condition. We spawn a background task to
293293
call ``serve_tcp``, and then immediately try to connect to that
294294
server. Sometimes this will work fine. But it takes a little while for
295-
the server to start up and be ready to accept connections so other
295+
the server to start up and be ready to accept connections - so other
296296
times, randomly, our connection attempt will happen too quickly, and
297-
error out. After all ``nursery.start_soon`` only promises that the
297+
error out. After all - ``nursery.start_soon`` only promises that the
298298
task will be started *soon*, not that it has actually happened. So this
299299
test will be flaky, and flaky tests are the worst.
300300

@@ -378,7 +378,7 @@ Putting it all together:
378378
await echo_client.send_all(test_byte)
379379
assert await echo_client.receive_some(1) == test_byte
380380
381-
Now, this works but there's still a lot of boilerplate. Remember, we
381+
Now, this works - but there's still a lot of boilerplate. Remember, we
382382
need to write lots of tests for this server, and we don't want to have
383383
to copy-paste all that stuff into every test. Let's factor out the
384384
setup into a fixture::

0 commit comments

Comments
 (0)