From c89fa2dab9a3848d60c99bdf074abb7ea54ab5bf Mon Sep 17 00:00:00 2001 From: Ben Clifford Date: Wed, 4 Oct 2023 12:26:13 +0000 Subject: [PATCH] Remove duplicated test that gives a deprecation warning This test tests that multiple apps can be submitted and then return. This is tested better in, for example, test_python_apps/test_mapred.py This test has started to raise a deprecation warning due to returning a value (rather than returning None by falling off the end). Removing it seems to me tidier than fixing that warning. --- parsl/tests/test_docs/test_workflow3.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 parsl/tests/test_docs/test_workflow3.py diff --git a/parsl/tests/test_docs/test_workflow3.py b/parsl/tests/test_docs/test_workflow3.py deleted file mode 100644 index 7ed52c8cb3..0000000000 --- a/parsl/tests/test_docs/test_workflow3.py +++ /dev/null @@ -1,23 +0,0 @@ -import parsl - -from parsl.app.app import python_app -from parsl.tests.configs.local_threads import config - - -@python_app -def generate(limit): - from random import randint - """Generate a random integer and return it""" - return randint(1, limit) - - -def test_parallel_for(N=2): - """Test parallel workflows from docs on Composing workflows - """ - rand_nums = [] - for i in range(1, 5): - rand_nums.append(generate(i)) - - # wait for all apps to finish and collect the results - outputs = [i.result() for i in rand_nums] - return outputs