[TIP] Tox and locales

Dougal Matthews dougal at dougalmatthews.com
Fri May 15 00:01:48 PDT 2015


On 15 May 2015 at 07:55, holger krekel <holger at merlinux.eu> wrote:
> On Thu, May 14, 2015 at 11:34 +0100, Dougal Matthews wrote:
>> Turns out I just needed this!
>> https://testrun.org/tox/latest/example/basic.html#passing-down-environment-variables
>
> I was considering adding "LANG" to the list of default passenv variables for tox-2.0
> so that all testenv's would see the locale setting that is used with the tox invocation.
> On the other hand it's not always needed and i think it's good to know for a project's
> tests that it has dependencies on running with a particular locale.

Yup, I agree. It makes sense now that I know. It is also my fault for
not limiting my
Tox version.

I can't think of a better approach :)



More information about the testing-in-python mailing list