beeware / cricket

A GUI tool for running Python test suites.
BSD 3-Clause "New" or "Revised" License
213 stars 69 forks source link

setup stdout prior to test setup. Fixes #7 #9

Closed amenasse closed 11 years ago

amenasse commented 11 years ago

Previously self._stdout was only set prior to the running of the test itself but not the setup method. Any errors in setup would throw an AttributeError when the test runner called PipedTestResult.addError.

This PR adds _setupStdout and _restoreStdout methods which are called in TestResult.startTest and TestResult.stopTest

Fixes #7.

amenasse commented 11 years ago

i'm now not sure this is the right approach, so i'm going to close this pull request