Skip to content

Commit ecd9fcc

Browse files
committed
prepare 1.5
1 parent 017ed7e commit ecd9fcc

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

README.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ pytest-twisted - test twisted code with pytest
66

77

88
:Authors: Ralf Schmitt <[email protected]>
9-
:Version: 1.4
10-
:Date: 2012-11-26
11-
:Download: http://pypi.python.org/pypi/pytest-twisted#downloads
9+
:Version: 1.5
10+
:Date: 2014-02-04
11+
:Download: https://pypi.python.org/pypi/pytest-twisted#downloads
1212
:Code: https://github.com/schmir/pytest-twisted
1313

1414

@@ -51,6 +51,17 @@ functions, which take funcargs, does not work. Please use
5151
res = yield threads.deferToThread(os.listdir, tmpdir.strpath)
5252
assert res == []
5353

54+
Waiting for deferreds in fixtures
55+
=================================
56+
`pytest.blockon` allows fixtures to wait for deferreds::
57+
58+
@pytest.fixture
59+
def val():
60+
d = defer.Deferred()
61+
reactor.callLater(1.0, d.callback, 10)
62+
return pytest.blockon(d)
63+
64+
5465
The twisted greenlet
5566
====================
5667
Some libraries (e.g. corotwine) need to know the greenlet, which is

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
setup(name='pytest-twisted',
7-
version='1.4',
7+
version='1.5',
88
description='A twisted plugin for py.test.',
99
long_description=open("README.rst").read(),
1010
author='Ralf Schmitt',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py25,py26,py27,docs
2+
envlist = py26,py27,docs
33

44

55
[testenv]

0 commit comments

Comments
 (0)