diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-07-29 10:41:20 +0200 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-07-29 10:41:20 +0200 |
commit | c6db126affaa5c7e09990a2ae4f16fc3955d930d (patch) | |
tree | ce9b7dd6e73a07e9c98ba64e11fd3a1b9d491c42 /testlib.py | |
parent | 12c9630cc47b27c1a9e910695e302037e8e2b642 (diff) | |
download | logilab-common-c6db126affaa5c7e09990a2ae4f16fc3955d930d.tar.gz |
[testlib] avoid additional period prints in generative tests
Diffstat (limited to 'testlib.py')
-rw-r--r-- | testlib.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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: |