Ticket #5795: fixCapturingDebugger.patch

File fixCapturingDebugger.patch, 951 bytes (added by Julian Berman, 8 years ago)
  • twisted/trial/test/test_runner.py

    diff --git a/twisted/trial/test/test_runner.py b/twisted/trial/test/test_runner.py
    index 8dfc75f..1dc5fb7 100644
    a b class TestRunner(unittest.SynchronousTestCase): 
    533533        debugger = my_runner.debugger = CapturingDebugger()
    534534        result = self.runSampleSuite(my_runner)
    535535        self.assertEqual(self.standardReport, result._calls)
    536         self.assertEqual(['runcall'], debugger._calls)
     536        self.assertEqual(['runcall'], debugger.calls)
    537537
    538538
    539539    def test_runnerDebuggerDefaultsToPdb(self):
    class TestRunner(unittest.SynchronousTestCase): 
    589589        my_runner = self.getRunner()
    590590        result = self.runSampleSuite(my_runner)
    591591        self.assertEqual(self.standardReport, result._calls)
    592         self.assertEqual(['runcall'], my_runner.debugger._calls)
     592        self.assertEqual(['runcall'], my_runner.debugger.calls)
    593593
    594594
    595595