summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2009-07-29 10:41:20 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2009-07-29 10:41:20 +0200
commitc6db126affaa5c7e09990a2ae4f16fc3955d930d (patch)
treece9b7dd6e73a07e9c98ba64e11fd3a1b9d491c42 /testlib.py
parent12c9630cc47b27c1a9e910695e302037e8e2b642 (diff)
downloadlogilab-common-c6db126affaa5c7e09990a2ae4f16fc3955d930d.tar.gz
[testlib] avoid additional period prints in generative tests
Diffstat (limited to 'testlib.py')
-rw-r--r--testlib.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/testlib.py b/testlib.py
index 444a4e7..7e3f394 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1202,16 +1202,17 @@ class TestCase(unittest.TestCase):
try:
if not self.quiet_run(result, self.setUp):
return
+ generative = is_generator(testMethod.im_func)
# generative tests
- if is_generator(testMethod.im_func):
- success = self._proceed_generative(result, testMethod,
- runcondition)
+ if generative:
+ self._proceed_generative(result, testMethod,
+ runcondition)
else:
status = self._proceed(result, testMethod)
success = (status == 0)
if not self.quiet_run(result, self.tearDown):
return
- if success:
+ if not generative and success:
if hasattr(options, "exitfirst") and options.exitfirst:
# add this test to restart file
try: