diff --git a/tests/github/experimental/testflow_exclude.py b/tests/github/experimental/testflow_exclude.py index b9e39ea175..1b5b14f1ff 100644 --- a/tests/github/experimental/testflow_exclude.py +++ b/tests/github/experimental/testflow_exclude.py @@ -191,7 +191,7 @@ def end(self): # Setup collaborators collaborator_names = ["Portland", "Chandler", "Bangalore", "Delhi"] collaborators = [] - for collaborator_name in enumerate(collaborator_names): + for collaborator_name in collaborator_names: collaborators.append(Collaborator(name=collaborator_name)) local_runtime = LocalRuntime(aggregator=aggregator, collaborators=collaborators) diff --git a/tests/github/experimental/testflow_include_exclude.py b/tests/github/experimental/testflow_include_exclude.py index 2871ca40f0..050bbee91b 100644 --- a/tests/github/experimental/testflow_include_exclude.py +++ b/tests/github/experimental/testflow_include_exclude.py @@ -204,7 +204,7 @@ def end(self): # Setup collaborators collaborator_names = ["Portland", "Chandler", "Bangalore", "Delhi"] collaborators = [] - for collaborator_name in enumerate(collaborator_names): + for idx, collaborator_name in enumerate(collaborator_names): collaborators.append( Collaborator( name=collaborator_name, diff --git a/tests/github/experimental/testflow_internalloop.py b/tests/github/experimental/testflow_internalloop.py index deb225b980..140bae5214 100644 --- a/tests/github/experimental/testflow_internalloop.py +++ b/tests/github/experimental/testflow_internalloop.py @@ -223,7 +223,7 @@ def display_validate_errors(validate_flow_error): "New York", ] collaborators = [] - for collaborator_name in enumerate(collaborator_names): + for collaborator_name in collaborator_names: collaborators.append(Collaborator(name=collaborator_name)) local_runtime = LocalRuntime(aggregator=aggregator, collaborators=collaborators) diff --git a/tests/github/experimental/testflow_privateattributes.py b/tests/github/experimental/testflow_privateattributes.py index ae320f56f0..11173a8432 100644 --- a/tests/github/experimental/testflow_privateattributes.py +++ b/tests/github/experimental/testflow_privateattributes.py @@ -104,11 +104,10 @@ def join(self, inputs): + f" not accessible {bcolors.ENDC}" ) - for input in enumerate(inputs): - collab = input[1].input + for idx, collab in enumerate(inputs): if ( - hasattr(input, "train_loader") is True - or hasattr(input, "test_loader") is True + hasattr(collab, "train_loader") is True + or hasattr(collab, "test_loader") is True ): # Error - we are able to access collaborator attributes TestFlowPrivateAttributes.error_list.append(