Skip to content

Commit 555edc9

Browse files
committed
Catch up README.rst
1 parent 3e892c8 commit 555edc9

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ undesirably detected by ``pytest`` as an unknown hook. One alternative
5050
is to ``import pytest_twisted as pt``.
5151

5252

53-
inlineCallbacks (async_yield)
54-
=============================
53+
inlineCallbacks
54+
===============
5555
Using ``twisted.internet.defer.inlineCallbacks`` as a decorator for test
5656
functions, which take funcargs, does not work. Please use
5757
``pytest_twisted.inlineCallbacks`` instead::
@@ -62,16 +62,13 @@ functions, which take funcargs, does not work. Please use
6262
assert res == []
6363

6464

65-
For symmetry with ``async_await`` below, ``pytest_twisted.inlineCallbacks``
66-
is also available as ``pytest_twisted.async_yield``.
67-
68-
async_await
69-
=================
65+
ensureDeferred
66+
==============
7067
Using ``twisted.internet.defer.ensureDeferred`` as a decorator for test
7168
functions, which take funcargs, does not work. Please use
72-
``pytest_twisted.async_await`` instead::
69+
``pytest_twisted.ensureDeferred`` instead::
7370

74-
@pytest_twisted.async_await
71+
@pytest_twisted.ensureDeferred
7572
async def test_some_stuff(tmpdir):
7673
res = await threads.deferToThread(os.listdir, tmpdir.strpath)
7774
assert res == []

0 commit comments

Comments
 (0)