[openstack-dev] Issues when running unit tests in OpenStack

Ben Nemec openstack at nemebean.com
Tue Apr 8 15:49:28 UTC 2014


On 04/08/2014 10:21 AM, Mehdi Abaakouk wrote:
> Hi,
>
> Le 2014-04-08 17:11, Ben Nemec a écrit :
>> It should be possible to switch back to testr for the py33 tests if we
>> use the regex syntax for filtering out the tests that don't work in
>> py3.  The rpc example is
>> https://github.com/openstack/oslo-incubator/blob/master/tox.ini#L21
>> and if you look at what tests2skip.py does in the tripleo tempest
>> element it should be an example of how to filter out failing tests:
>> https://github.com/openstack/tripleo-image-elements/blob/master/elements/tempest/bin/run-tempest#L110
>
> Unfortunately, it won't work because testr/subunit needs to load all
> python files to compute the tests list, and then filter it with the
> regexes
> But in python3, all files cannot be loaded yet. This is why nosetests is
> used currently.

Oh, right.  I figured there was probably a reason I didn't object to 
using nose in the first place, and that would be it.  Thanks for the 
reminder. :-)

-Ben




More information about the OpenStack-dev mailing list