[Python-modules-commits] [python-pyld] 184/276: Fix earl report writing.
Wolfgang Borgert
debacle at moszumanska.debian.org
Wed Oct 8 23:48:09 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository python-pyld.
commit abe93e1272d6c70d2d0c36a5874a314d756dcc35
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Tue Sep 10 12:34:16 2013 -0400
Fix earl report writing.
---
tests/runtests.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tests/runtests.py b/tests/runtests.py
index d31bbce..fe500cb 100644
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -78,13 +78,13 @@ class TestRunner(unittest.TextTestRunner):
suite = Manifest(root_manifest, filename).load()
# run tests
- self.run(suite)
+ result = self.run(suite)
# output earl report if specified
if self.options.earl:
filename = os.path.abspath(self.options.earl)
print('Writing EARL report to: %s' % filename)
- earl.write(filename)
+ result.writeReport(filename)
class Manifest:
@@ -319,6 +319,9 @@ class EarlTestResult(unittest.TextTestResult):
unittest.TextTestResult.addSuccess(self, test)
self.report.add_assertion(test, True)
+ def writeReport(self, filename):
+ self.report.write(filename)
+
class EarlReport():
"""
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git
More information about the Python-modules-commits
mailing list