languages: Do not expose unnecessary captures from tasks (#19625)

This tackles an issue with us exposing unnecessary env variables in
environment which are not actually needed for tasks themselves (and may
have little utility), yet come into the way of ssh remoting.

/cc @ConradIrwin 

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz authored and GitHub committed 2024-10-23 18:54:08 +02:00
1 parent 69b12f4e33
commit 9dfe4a30bb
9 files changed
+16 -16

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@
(attribute (identifier) @_superclass)]
)
(#eq? @_superclass "TestCase")
) @python-unittest-class
) @_python-unittest-class
(#set! tag python-unittest-class)
)
@@ -24,7 +24,7 @@
(function_definition
name: (identifier) @run @_unittest_method_name
(#match? @_unittest_method_name "^test.*")
) @python-unittest-method
) @_python-unittest-method
(#set! tag python-unittest-method)
)
)