1 new commit in pytest-xdist:
https://bitbucket.org/hpk42/pytest-xdist/changeset/1d2909839e98/ changeset: 1d2909839e98 user: RonnyPfannschmidt date: 2012-01-20 19:53:41 summary: add a test to check deserialization of nonstandard test report attributes affected #: 1 file diff -r 815039684ac977f374508103a48941b106dbb394 -r 1d2909839e98ddbac013b3ed303ed22e96616d8b testing/test_remote.py --- a/testing/test_remote.py +++ b/testing/test_remote.py @@ -121,6 +121,23 @@ if rep.failed: assert newrep.longrepr == str(rep.longrepr) + def test_extended_report_deserialization(self, testdir): + reprec = testdir.inline_runsource("qwe abc") + reports = reprec.getreports("pytest_collectreport") + assert reports + for rep in reports: + rep.extra = True + d = serialize_report(rep) + check_marshallable(d) + newrep = unserialize_report("collectreport", d) + assert newrep.extra + assert newrep.passed == rep.passed + assert newrep.failed == rep.failed + assert newrep.skipped == rep.skipped + if rep.failed: + assert newrep.longrepr == str(rep.longrepr) + + class TestSlaveInteractor: def test_basic_collect_and_runtests(self, slave): p = slave.testdir.makepyfile(""" 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