Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-RR committed Oct 12, 2014
1 parent c90da70 commit 2f946c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 2 additions & 0 deletions 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
Expand Down
15 changes: 1 addition & 14 deletions source_py3/test_python_toolbox/test_combi/test_extensive.py
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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,
Expand All @@ -516,19 +507,15 @@ 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)
for i, partition in enumerate(sequence_tools.partitions(lambdas, 500)):
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)

0 comments on commit 2f946c2

Please sign in to comment.