[TIP] RFC: tox-2.0 to restrict/isolate env variables in test runs

Laura Creighton lac at openend.se
Tue Apr 21 05:51:59 PDT 2015


In a message of Tue, 21 Apr 2015 11:43:36 -0000, holger krekel writes:
>On Mon, Apr 20, 2015 at 14:10 -0400, Barry Warsaw wrote:
>> On Apr 19, 2015, at 07:31 AM, holger krekel wrote:
>> 
>> >If you want to transfer any other variables you'd have to use a new "passenv"
>> >setting.  For example to pass through the content of LANG (used for locale
>> >settings) and typical home-directory settings (on win32 and unix):
>> >
>> >    [testenv]
>> >    passenv = LANG HOME HOMEDIR HOMEDRIVE
>> 
>> This seems pretty useful and I like being able to avoid hidden environment
>> dependencies.
>> 
>> I wonder if it also makes sense to have an 'omitenv' option, where the default
>> would be:
>> 
>> [testenv]
>> omitenv = *
>> 
>> but then I could do something like:
>> 
>> [testenv]
>> passenv = *
>> omitenv = SYSTEMIMAGE*

And then I come along and do:

[testenv]
omitenv = *
passenv = LANG LC_*

Now what?



More information about the testing-in-python mailing list