summaryrefslogtreecommitdiff
path: root/functional_tests/test_program.py
diff options
context:
space:
mode:
authorKumar McMillan <kumar.mcmillan@gmail.com>2009-10-15 14:51:14 -0500
committerKumar McMillan <kumar.mcmillan@gmail.com>2009-10-15 14:51:14 -0500
commitd9cab7c7ba5db4bbf8eafa95d1915ab9f05c2bc8 (patch)
tree5905ddc8bea60bc91496b6e0da6bb9a95a43c17d /functional_tests/test_program.py
parentde094a633bd44a10f2b8696ac2476db44819b95f (diff)
downloadnose-d9cab7c7ba5db4bbf8eafa95d1915ab9f05c2bc8.tar.gz
Fixed import errors after new unittest module layout in 2.7. Added exit= keyword to TestProgram subclass. Replaced _strclass which was removed from unittest. Adjusted some paths in doctests. TODO: looks like custom test descriptions is broken.
Diffstat (limited to 'functional_tests/test_program.py')
-rw-r--r--functional_tests/test_program.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/functional_tests/test_program.py b/functional_tests/test_program.py
index aacdf95..bb63818 100644
--- a/functional_tests/test_program.py
+++ b/functional_tests/test_program.py
@@ -5,13 +5,14 @@ from nose import SkipTest
from nose.core import TestProgram
from nose.config import Config
from nose.plugins.manager import DefaultPluginManager
+from nose.result import _TextTestResult
here = os.path.dirname(__file__)
support = os.path.join(here, 'support')
class TestRunner(unittest.TextTestRunner):
def _makeResult(self):
- self.result = unittest._TextTestResult(
+ self.result = _TextTestResult(
self.stream, self.descriptions, self.verbosity)
return self.result