@@ -183,7 +183,7 @@ If you need to support Python 3.5, which doesn't allow ``yield``
183183inside an ``async def `` function, then you can define async fixtures
184184using 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
233233This will mostly work, but it has a few problems. The most obvious one
234234is 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
236236nursery block will wait forever for it to exit.
237237
238238To 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
293293call ``serve_tcp ``, and then immediately try to connect to that
294294server. 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
296296times, 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
298298task will be started *soon *, not that it has actually happened. So this
299299test 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
382382need to write lots of tests for this server, and we don't want to have
383383to copy-paste all that stuff into every test. Let's factor out the
384384setup into a fixture::
0 commit comments