[svn r63566] the InternalException event class bites the dust.

--HG--
branch : trunk
This commit is contained in:
hpk
2009-04-03 16:18:47 +02:00
parent d1946ae978
commit 45e0499f10
11 changed files with 31 additions and 33 deletions
+6 -6
View File
@@ -178,10 +178,10 @@ class ResultDB(object):
if not event.passed:
self.log_outcome(event)
def pyevent__internalerror(self, event):
path = event.repr.reprcrash.path # fishing :(
self.write_log_entry(event, '!', path, str(event.repr))
def pyevent__internalerror(self, excrepr):
path = excrepr.reprcrash.path
XXX # we don't have an event
self.write_log_entry(event, '!', path, str(excrepr))
SQL_CREATE_TABLES = """
create table pytest_results (
@@ -368,9 +368,9 @@ class TestWithFunctionIntegration:
try:
raise ValueError
except ValueError:
excinfo = event.InternalException()
excinfo = py.code.ExceptionInfo()
reslog = ResultDB(StringIO.StringIO())
reslog.pyevent("internalerror", (excinfo,), {})
reslog.pyevent("internalerror", (excinfo.getrepr(),), {})
entry = reslog.logfile.getvalue()
entry_lines = entry.splitlines()