We have no way to reliably test OOPS generation. For example, see the race condition recently documented in bug #567257. While there is a mostly-okay fix for that particular bug, we'd be much better off with a generalized solution that is not vulnerable to race conditions at all. See that bug, and lib/lp/code/model/tests/test_diff.py:TestDiffInScripts.test_fromFile_withError(), for how we currently do it.
We have no way to reliably test OOPS generation. For example, see the race condition recently documented in bug #567257. While there is a mostly-okay fix for that particular bug, we'd be much better off with a generalized solution that is not vulnerable to race conditions at all. See that bug, and lib/lp/ code/model/ tests/test_ diff.py: TestDiffInScrip ts.test_ fromFile_ withError( ), for how we currently do it.