Comment 0 for bug 567689

Revision history for this message
Karl Fogel (kfogel) wrote : Have a guaranteed way to check OOPS generation in tests.

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.