[py-svn] r57087 - py/branch/event/py/test2/rsession
hpk at codespeak.net
hpk at codespeak.net
Thu Aug 7 21:30:19 CEST 2008
Author: hpk
Date: Thu Aug 7 21:30:13 2008
New Revision: 57087
Modified:
py/branch/event/py/test2/rsession/masterslave.py
Log:
simplify slave side
Modified: py/branch/event/py/test2/rsession/masterslave.py
==============================================================================
--- py/branch/event/py/test2/rsession/masterslave.py (original)
+++ py/branch/event/py/test2/rsession/masterslave.py Thu Aug 7 21:30:13 2008
@@ -94,14 +94,11 @@
if hasattr(os, 'nice'):
nice_level = config.getvalue('dist_nicelevel')
os.nice(nice_level)
- slave_main(channel.receive, channel.send, config)
-
-def slave_main(receive, send, config):
while 1:
- item = receive()
+ item = channel.receive()
if item is None:
- send(None)
+ channel.send(None)
break
runner = item._getrunner()
testrep = runner(item)
- send(testrep)
+ channel.send(testrep)
More information about the pytest-commit
mailing list