Commit 237698de authored by di68kap's avatar di68kap
Browse files

Ticket#158: Mehrere Flexionsblöcke innerhalb der Grammatik nun erlaubt

parent cd1a166b
......@@ -614,7 +614,7 @@ def grammar_suite(directory, parser_factory, transformer_factory,
if any(fnmatch.fnmatch(fn, pattern) for pattern in fn_patterns)]
# TODO: fix "handle is closed" error in pypy3 when exiting the interpreter!
with instantiate_executor(get_config_value('test_parallelization'),
with instantiate_executor(get_config_value('test_parallelization') and len(tests) > 1,
concurrent.futures.ProcessPoolExecutor) as pool:
results = []
for filename in tests:
......@@ -919,7 +919,7 @@ def run_path(path):
sys.path.append(path)
files = os.listdir(path)
results = []
with instantiate_executor(get_config_value('test_parallelization'),
with instantiate_executor(get_config_value('test_parallelization') and len(files) > 1,
concurrent.futures.ProcessPoolExecutor) as pool:
for f in files:
results.append(pool.submit(run_file, f))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment