]> git.parisson.com Git - timeside.git/commitdiff
refactor(test_analyzers_stress): minor refactoring
authorThomas Fillon <thomas@parisson.com>
Tue, 24 Jun 2014 13:39:40 +0000 (15:39 +0200)
committerThomas Fillon <thomas@parisson.com>
Tue, 24 Jun 2014 13:39:40 +0000 (15:39 +0200)
tests/test_analyzers_stress.py

index 1ce7bfbbd92c3e3b7e0a20586a4a0718befe7c1a..3bb43be0d32fe7201ba431e6193b8a2130a36500 100755 (executable)
@@ -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))