<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="font-family:arial,sans-serif">On Thu, May 21, 2015 at 11:42 PM, holger krekel </span><span dir="ltr" style="font-family:arial,sans-serif"><<a href="mailto:holger@merlinux.eu" target="_blank">holger@merlinux.eu</a>></span><span style="font-family:arial,sans-serif"> wrote:</span><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Thu, May 21, 2015 at 21:41 +0000, holger krekel wrote:<br>
> On Thu, May 21, 2015 at 23:23 +0200, Stephan Obermann wrote:<br>
> > On Thu, May 21, 2015 at 10:48 PM, Ronny Pfannschmidt <<br>
> > <a href="mailto:opensource@ronnypfannschmidt.de">opensource@ronnypfannschmidt.de</a>> wrote:<br>
> ><br>
> > > tox 2.0 introduced env var isolation, you need to explicitly white-list<br>
> > > or use a older version<br>
> > ><br>
> ><br>
> > Is there a way to disable this feature or white-list all environment<br>
> > variables without specifying them one by one (as described in the<br>
> > documentation<br>
> > <a href="https://testrun.org/tox/latest/example/basic.html#passing-down-environment-variables" target="_blank">https://testrun.org/tox/latest/example/basic.html#passing-down-environment-variables</a><br>
> > )?<br>
><br>
> You can use wildcards so for example<br>
><br>
> passenv = *<br>
><br>
> should work. For tox-2.0.2 i plan to collect suggestions<br>
> to see which env vars should be put into the default set.<br>
<br>
</span>moreover, we could think about recognizing a TOX_PASSENV variable<br>
and add the specified names into all passenv settings for the testenvs.<br>
Would that help in your case?<br></blockquote><div> </div><div><div class="gmail_default" style="font-family:verdana,sans-serif">Yes, that would definitely help to keep maintenance effort for our existing packages low - so much appreciated. :-)</div><div class="gmail_default" style="font-family:verdana,sans-serif">Would this also work for generated test environments (<a href="https://testrun.org/tox/latest/config.html#generating-environments-conditional-settings)?">https://testrun.org/tox/latest/config.html#generating-environments-conditional-settings)?</a></div><br></div><div><div class="gmail_default" style="font-family:verdana,sans-serif">Cheers,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">/stephan</div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><font color="#888888">
holger<br>
</font></span><div class=""><div class="h5"><br>
> best,<br>
> holger<br>
><br>
> > On 05/21/2015 10:41 PM, Albert-Jan Roskam wrote:<br>
> > > > Hi,<br>
> > > ><br>
> > > > I am using Tox to run my unittests. This morning I upgraded my system<br>
> > > (dist-upgrade to Debian 8 64), and I also upgraded tox (version 2.0.1),<br>
> > > nosetests<br>
> > > > (version 1.3.6) and virtualenv (version 12.1.1).<br>
> > > ><br>
> > > > Now a setlocale line in my code trows an error. This happens in tox<br>
> > > (py27 and py33+) but not in nosetests. The (very simplified) code is given<br>
> > > below. Any idea why this happens, and how to resolve this?<br>
> > > ><br>
> > > ><br>
> > > > import locale<br>
> > > > class Foo(object):<br>
> > > ><br>
> > > > def __init__(self):<br>
> > > ><br>
> > > > print("@@@@@")<br>
> > > > print(locale.setlocale(locale.LC_ALL, ""))<br>
> > > > print("@@@@@")<br>
> > > ><br>
> > > ><br>
> > > > import unittest<br>
> > > ><br>
> > > > class TestFoo(unittest.TestCase):<br>
> > > > def test_foo(self):<br>
> > > > self.assertTrue(True)<br>
> > > ><br>
> > > > if __name__ == "__main__":<br>
> > > > unittest.main()<br>
> > > ><br>
> > > ><br>
> > > > File<br>
> > > "/home/albertjan/nfs/Public/project/.tox/py27/lib/python2.7/locale.py",<br>
> > > line 579, in setlocale<br>
> > > > return _setlocale(category, locale)<br>
> > > > Error: unsupported locale setting<br>
> > > ><br>
> > > > -------------------- >> begin captured stdout << ---------------------<br>
> > > > @@@@@<br>
> > > ><br>
> > > > --------------------- >> end captured stdout << ----------------------<br>
> > > ><br>
> > > > Thanks!<br>
> > > ><br>
> > > > Regards,<br>
> > > ><br>
> > > > Albert-Jan<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> > > ><br>
> > > > All right, but apart from the sanitation, the medicine, education, wine,<br>
> > > public order, irrigation, roads, a<br>
> > > ><br>
> > > > fresh water system, and public health, what have the Romans ever done<br>
> > > for us?<br>
> > > ><br>
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > testing-in-python mailing list<br>
> > > > <a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
> > > > <a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > testing-in-python mailing list<br>
> > > <a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
> > > <a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
> > ><br>
><br>
> > _______________________________________________<br>
> > testing-in-python mailing list<br>
> > <a href="mailto:testing-in-python@lists.idyll.org">testing-in-python@lists.idyll.org</a><br>
> > <a href="http://lists.idyll.org/listinfo/testing-in-python" target="_blank">http://lists.idyll.org/listinfo/testing-in-python</a><br>
><br>
><br>
> --<br>
> about me: <a href="http://holgerkrekel.net/about-me/" target="_blank">http://holgerkrekel.net/about-me/</a><br>
> contracting: <a href="http://merlinux.eu" target="_blank">http://merlinux.eu</a><br>
<br>
--<br>
about me: <a href="http://holgerkrekel.net/about-me/" target="_blank">http://holgerkrekel.net/about-me/</a><br>
contracting: <a href="http://merlinux.eu" target="_blank">http://merlinux.eu</a><br>
</div></div></blockquote></div><br></div></div>