1 new commit in pytest-xdist:

https://bitbucket.org/hpk42/pytest-xdist/changeset/42ef12993d2a/
changeset:   42ef12993d2a
user:        hpk42
date:        2011-11-18 17:03:02
summary:     small fixes to test suite
affected #:  3 files

diff -r 017a73903b6f50f3ad201be5c8b7465111e5026c -r 
42ef12993d2a2046db098b02cef2552df7f94d3f CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,7 +1,8 @@
 1.7
 -------------------------
 
-- fix incompatibilities with pytest-2.2.0
+- fix incompatibilities with pytest-2.2.0 (allow multiple
+  pytest_runtest_logreport reports for a test item)
 
 1.6
 -------------------------


diff -r 017a73903b6f50f3ad201be5c8b7465111e5026c -r 
42ef12993d2a2046db098b02cef2552df7f94d3f testing/test_remote.py
--- a/testing/test_remote.py
+++ b/testing/test_remote.py
@@ -195,13 +195,13 @@
         ids = ev.kwargs['ids']
         assert len(ids) == 2
         slave.sendcommand("runtests_all", )
+        slave.sendcommand("shutdown", )
         for func in "::test_func", "::test_func2":
             for i in range(3):  # setup/call/teardown
                 ev = slave.popevent("testreport")
                 assert ev.name == "testreport"
                 rep = unserialize_report(ev.name, ev.kwargs['data'])
                 assert rep.nodeid.endswith(func)
-        slave.sendcommand("shutdown")
         ev = slave.popevent("slavefinished")
         assert 'slaveoutput' in ev.kwargs
 


diff -r 017a73903b6f50f3ad201be5c8b7465111e5026c -r 
42ef12993d2a2046db098b02cef2552df7f94d3f xdist/plugin.py
--- a/xdist/plugin.py
+++ b/xdist/plugin.py
@@ -97,6 +97,7 @@
     from xdist.slavemanage import unserialize_report
     def runforked():
         try:
+            item.nextitem = None
             reports = runtestprotocol(item, log=False)
         except KeyboardInterrupt:
             py.std.os._exit(EXITSTATUS_TESTEXIT)

Repository URL: https://bitbucket.org/hpk42/pytest-xdist/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
py-svn mailing list
py-svn@codespeak.net
http://codespeak.net/mailman/listinfo/py-svn

Reply via email to