Permalink
Browse files

Merge pull request #775 from diminoten/master

Fix plugin test interface documentation.
  • Loading branch information...
2 parents c51ff6f + 90469c1 commit ea23b2673b2fa69e6fbb8f89c6a32fde10f6de74 @jszakmeister jszakmeister committed Feb 20, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 nose/plugins/plugintest.py
@@ -27,7 +27,7 @@
... class TC(unittest.TestCase):
... def runTest(self):
... raise ValueError("I hate foo")
- ... return unittest.TestSuite([TC()])
+ ... return [TC('runTest')]
...
>>> res = unittest.TestResult()
>>> case = TestPluginFoo('test_foo')
@@ -79,7 +79,7 @@
... class TC(unittest.TestCase):
... def runTest(self):
... raise ValueError("I hate fancy stuff")
- ... return unittest.TestSuite([TC()])
+ ... return [TC('runTest')]
...
>>> res = unittest.TestResult()
>>> case = TestFancyOutputter('test_fancy_output')

0 comments on commit ea23b26

Please sign in to comment.