<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 6, 2020 at 7:17 PM Matthew Treinish <<a href="mailto:mtreinish@kortar.org">mtreinish@kortar.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, May 06, 2020 at 05:58:43PM +0200, Dmitry Tantsur wrote:<br>
> Hi folks,<br>
> <br>
> Most OpenStack projects use testtools/fixtures/unittest2 for unit tests. It<br>
> was immensely helpful in Python 2 times, but I wonder if we should migrate<br>
> away now. I've hit at least these three bugs:<br>
> <a href="https://github.com/testing-cabal/testtools/issues/235" rel="noreferrer" target="_blank">https://github.com/testing-cabal/testtools/issues/235</a><br>
> <a href="https://github.com/testing-cabal/testtools/issues/275" rel="noreferrer" target="_blank">https://github.com/testing-cabal/testtools/issues/275</a><br>
> <a href="https://github.com/testing-cabal/testtools/issues/144" rel="noreferrer" target="_blank">https://github.com/testing-cabal/testtools/issues/144</a><br>
> <br>
> We can invest time in fixing them, but I wonder if we should just migrate<br>
> to the standard unittest (and move oslotest to it) now that we require<br>
> Python >= 3.6.<br>
> <br>
> Thoughts?<br>
> <br>
<br>
It's used extensively, all the fixtures usage is based on testtools,<br>
additionally all the attachments (mainly captured stdout, stderr, and logging)<br>
rely on testtools result stream which adds the concept of attachments. None<br>
of that is in stdlib unittest.<br></blockquote><div><br></div><div>Then should we invest time to fix the testtools bugs? I understand that folks use stuff that is not in stdlib, but it's pretty annoying to not be able to use stuff that IS in stdlib.</div><div><br></div><div>Dmitry<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-Matt Treinish<br>
</blockquote></div></div>