[all] [qa] [oslo] Usage of testtools?

Matthew Treinish mtreinish at kortar.org
Wed May 6 17:13:59 UTC 2020


On Wed, May 06, 2020 at 05:58:43PM +0200, Dmitry Tantsur wrote:
> Hi folks,
> 
> Most OpenStack projects use testtools/fixtures/unittest2 for unit tests. It
> was immensely helpful in Python 2 times, but I wonder if we should migrate
> away now. I've hit at least these three bugs:
> https://github.com/testing-cabal/testtools/issues/235
> https://github.com/testing-cabal/testtools/issues/275
> https://github.com/testing-cabal/testtools/issues/144
> 
> We can invest time in fixing them, but I wonder if we should just migrate
> to the standard unittest (and move oslotest to it) now that we require
> Python >= 3.6.
> 
> Thoughts?
> 

It's used extensively, all the fixtures usage is based on testtools,
additionally all the attachments (mainly captured stdout, stderr, and logging)
rely on testtools result stream which adds the concept of attachments. None
of that is in stdlib unittest.

-Matt Treinish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200506/055f79aa/attachment.sig>


More information about the openstack-discuss mailing list