summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2009-04-19 15:45:33 +0000
committerJason Pellerin <jpellerin@gmail.com>2009-04-19 15:45:33 +0000
commitdd72d9c871cd2797b6d8badf8e24f5588d179672 (patch)
tree06bd42c5a08f776b9ce0c3686028587fd32a44c8 /doc
parent3ec4d83ec8955afda99d3306da7ff7a615e2ea77 (diff)
downloadnose-dd72d9c871cd2797b6d8badf8e24f5588d179672.tar.gz
Additional clarification of generators and fixtures
Diffstat (limited to 'doc')
-rw-r--r--doc/writing_tests.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/writing_tests.rst b/doc/writing_tests.rst
index b1e20ce..c739b5f 100644
--- a/doc/writing_tests.rst
+++ b/doc/writing_tests.rst
@@ -164,7 +164,9 @@ In the latter case the setup and teardown functions will execute once for each
yielded test.
For generator methods, the setUp and tearDown methods of the class (if any)
-will be run before and after each generated test case.
+will be run before and after each generated test case. The setUp and tearDown
+methods *do not* run before the generator method itself, as this would cause
+setUp to run twice before the first test without an intervening tearDown.
Please note that method generators *are not* supported in `unittest.TestCase`
subclasses. \ No newline at end of file