From: Thomas Fillon Date: Tue, 24 Jun 2014 13:39:40 +0000 (+0200) Subject: refactor(test_analyzers_stress): minor refactoring X-Git-Tag: 0.6~4^2~84 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=585fd4c99732e64304ea86b48072fd21f4666857;p=timeside.git refactor(test_analyzers_stress): minor refactoring --- diff --git a/tests/test_analyzers_stress.py b/tests/test_analyzers_stress.py index 1ce7bfb..3bb43be 100755 --- a/tests/test_analyzers_stress.py +++ b/tests/test_analyzers_stress.py @@ -60,8 +60,7 @@ def _tests_factory(test_class, test_doc, list_analyzers, skip_reasons={}): test_func = test_func_factory(analyzer) if analyzer.__name__ not in skip_reasons: - setattr(test_class, test_func_name, - test_func_factory(analyzer)) + setattr(test_class, test_func_name, test_func) else: # Decorate with unittest.skip to skip test setattr(test_class, test_func_name, unittest.skip(skip_reasons[analyzer.__name__])(test_func))