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

Mehdi Abaakouk sileht at sileht.net
Tue Apr 8 15:21:37 UTC 2014


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.

Regards,
---
Mehdi Abaakouk
mail: sileht at sileht.net
irc: sileht




More information about the OpenStack-dev mailing list