uranusjr commented on code in PR #27526:
URL: https://github.com/apache/airflow/pull/27526#discussion_r1015953165


##########
kubernetes_tests/test_kubernetes_pod_operator.py:
##########
@@ -79,17 +77,14 @@ def get_kubeconfig_path():
 
 def get_label():
     test = os.environ.get("PYTEST_CURRENT_TEST")
+    test = test.split(" ")[0]  # if invoked from setup, will have suffix ' 
(setup)', e.g.

Review Comment:
   ```suggestion
       test = test.split(" ", 1)[0]  # if invoked from setup, will have suffix 
' (setup)', e.g.
   ```
   
   No need to do additional splits.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to