From 2f946c2e6ad56de26a1ceb05bf74d0eb3b11bfa6 Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Mon, 13 Oct 2014 02:34:43 +0300 Subject: [PATCH] - --- setup.cfg | 2 ++ .../test_combi/test_extensive.py | 15 +-------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/setup.cfg b/setup.cfg index aeadc73a..f080012b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,9 @@ [nosetests] where=source_py2/test_python_toolbox py3where=source_py3/test_python_toolbox + processes=4 +process-timeout=10000 verbosity=3 detailed-errors=1 diff --git a/source_py3/test_python_toolbox/test_combi/test_extensive.py b/source_py3/test_python_toolbox/test_combi/test_extensive.py index df32961a..5815ad40 100644 --- a/source_py3/test_python_toolbox/test_combi/test_extensive.py +++ b/source_py3/test_python_toolbox/test_combi/test_extensive.py @@ -411,7 +411,6 @@ def _check_variation_selection(variation_selection, perm_space_type, def _iterate_tests(): - shitfuck = 0 for variation_selection in combi.variations.variation_selection_space: kwargs = {} @@ -492,14 +491,6 @@ def _iterate_tests(): else: perm_processor_options = (NO_ARGUMENT,) - #blocktodo remove - # if variation_selection.is_combination and variation_selection.is_fixed and variation_selection.is_rapplied and variation_selection.is_partial: - # continue - if shitfuck: - shitfuck -= 1 - continue - - product_space_ = combi.ProductSpace( ((variation_selection,), perm_space_type_options, iterable_or_length_and_sequence_options, domain_to_cut_options, @@ -516,11 +507,10 @@ def _iterate_tests(): fucking_globals, locals() ) -_tests = tuple(_iterate_tests()) # We use this shit because Nose can't parallelize generator tests: lambdas = [] -for i, f in enumerate(_tests): +for i, f in enumerate(_iterate_tests()): f.name = 'f_%s' % i locals()[f.name] = f lambdas.append(f) @@ -528,7 +518,4 @@ def _iterate_tests(): exec('def test_%s(): return (%s)' % (i, ', '.join('%s()'% f.name for f in partition))) -# for i in range(3, 65): - # # blocktodo remove - # exec('del test_%s' % i) \ No newline at end of file