[TIP] [tox] Generative Environment Question

Ian Cordasco graffatcolmingov at gmail.com
Sat Nov 1 18:09:56 PDT 2014


Thank Alex!

On Sat, Nov 1, 2014 at 4:31 PM, Alex Gaynor <alex.gaynor at gmail.com> wrote:
> I think the right way to do this would be to delete the 26, 27, and pypy
> sections and add to the main [testenv] deps section:
>
>    py26: unittest2
>    py27: unittest2
>    pypy: unittest2
>
> There might be some way to combine those further, but it's a start.
>
> Alex
>
> On Sat Nov 01 2014 at 2:28:55 PM Ian Cordasco <graffatcolmingov at gmail.com>
> wrote:
>>
>> Hey all,
>>
>> Currently I'm taking advantage of the generative features in tox 1.8
>> (https://github.com/sigmavirus24/github3.py/blob/1.0-alpha/tox.ini)
>> but I'm wondering if my file can be simplified even further with
>> something like
>>
>> [testenv:py{26,27,py}]
>>
>> Instead of three different sections for py26, py27, and pypy.
>>
>> Am I correct that this isn't currently a feature? (In my quick tests
>> it didn't seem to work)
>>
>> Cheers,
>> Ian
>>
>> _______________________________________________
>> testing-in-python mailing list
>> testing-in-python at lists.idyll.org
>> http://lists.idyll.org/listinfo/testing-in-python



More information about the testing-in-python mailing list