[Zope3-dev] Win32 Tests - Zope 3 - Not OK :-(

Tim Peters tim@zope.com
Mon, 10 Mar 2003 12:06:01 -0500


[Jeremy Hylton]
> CRITICAL:txn:Transaction failed during second phase of two-phase commmit
> ...
> What makes you think threads are involved?

A bad hasty guess, based on the "ok" at the bottom and the "Not OK" in the
Subject line.

> ...
> These tests aren't failing, but they are causing critical-level logging
> messages to be generated.

OK, it's expected then.

> I don't know how to disable the logging during testing.  I think,
> ideally, we could add an assertion to the unit test that a log message
> is generated.

It appears that the test runner spews "Not OK" independent of what unittest
believes; I'm focused on the "Not OK" in the Subject line here; I don't how
that comes to be or where the test runner code lives, but it appears to
trigger upon finding anything in stdout or stderr other than unittest's
end-of-run summary.