Index: src/zope/testing/testrunner/testrunner-debugging.txt =================================================================== --- src/zope/testing/testrunner/testrunner-debugging.txt (revision 114739) +++ src/zope/testing/testrunner/testrunner-debugging.txt (working copy) @@ -91,7 +91,9 @@ ... finally: sys.stdin = real_stdin ... # doctest: +NORMALIZE_WHITESPACE +REPORT_NDIFF Running zope.testing.testrunner.layer.UnitTests tests: - ... + Set up zope.testing.testrunner.layer.UnitTests in N.NNN seconds. + + Error in test test_post_mortem_failure1 (sample3.sampletests_d.TestSomething) Traceback (most recent call last): File ".../unittest.py", line 252, in debug @@ -99,13 +101,13 @@ File "testrunner-ex/sample3/sampletests_d.py", line 42, in test_post_mortem_failure1 self.assertEqual(x, y) - File ".../unittest.py", line 302, in failUnlessEqual + File "testrunner-ex/sample3/sampletests_d.py", line 22, in assertEqual raise self.failureException, \ AssertionError: 1 != 2 exceptions.AssertionError: 1 != 2 - > .../unittest.py(302)failUnlessEqual() + > testrunner-ex/sample3/sampletests_d.py(NNN)assertEqual() -> ... (Pdb) up > testrunner-ex/sample3/sampletests_d.py(42)test_post_mortem_failure1() Index: src/zope/testing/testrunner/testrunner-ex/sample3/sampletests_d.py =================================================================== --- src/zope/testing/testrunner/testrunner-ex/sample3/sampletests_d.py (revision 114739) +++ src/zope/testing/testrunner/testrunner-ex/sample3/sampletests_d.py (working copy) @@ -19,6 +19,13 @@ class TestSomething(unittest.TestCase): + def assertEqual(self, first, second, msg=None): + # Copy in the 'failUnlessEqual' implementation from Python 2.6 + # unittest.py, as the 2.7 version adds an extra stack frame. + if not first == second: + raise self.failureException, \ + (msg or '%r != %r' % (first, second)) + def test_set_trace1(self): x = 1 import pdb; pdb.set_trace()