[py-svn] r62060 - py/branch/pytestplugin/py/test/plugin
hpk at codespeak.net
hpk at codespeak.net
Fri Feb 20 19:34:12 CET 2009
Author: hpk
Date: Fri Feb 20 19:34:11 2009
New Revision: 62060
Modified:
py/branch/pytestplugin/py/test/plugin/pytest_resultlog.py
Log:
streamline test
Modified: py/branch/pytestplugin/py/test/plugin/pytest_resultlog.py
==============================================================================
--- py/branch/pytestplugin/py/test/plugin/pytest_resultlog.py (original)
+++ py/branch/pytestplugin/py/test/plugin/pytest_resultlog.py Fri Feb 20 19:34:11 2009
@@ -216,16 +216,13 @@
def test_internal_exception(self):
# they are produced for example by a teardown failing
# at the end of the run
-
+ from py.__.test import event
try:
raise ValueError
except ValueError:
- excinfo = py.code.ExceptionInfo()
-
- from py.__.test import event
- internal = event.InternalException(excinfo)
+ excinfo = event.InternalException()
reslog = ResultLog(StringIO.StringIO())
- reslog.pyevent("internalerror", event.InternalException(excinfo))
+ reslog.pyevent("internalerror", excinfo)
entry = reslog.logfile.getvalue()
entry_lines = entry.splitlines()
More information about the pytest-commit
mailing list