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 2024-10-23 18:54:08 +02:00 committed by GitHub
parent 69b12f4e33
commit 9dfe4a30bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 16 additions and 16 deletions

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)
)
)