<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 14, 2019 at 6:48 PM Brett Cannon <<a href="mailto:brett@python.org">brett@python.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"><div dir="ltr"><br><div class="gmail_quote"><div>With -j you can do parallel testing and I know I always run with that on. But <a href="https://github.com/python/cpython/blob/8a1657b93469580ef345c7c91738587f3d76e87d/Lib/test/support/__init__.py#L835" target="_blank">TESTFN does <i>attempt </i>to account for that</a> by using the PID in the name.</div></div></div></blockquote><div><br></div><div>Good to know, thanks. TESTFN aside, I was more interested in knowing if there's interest in landing something like this in test.support:</div><div><br></div><div>def rmpath(path):</div><div>    "Try to remove a path regardless of its type."<br></div><div>    if os.path.isdir(path):<br>        test.support.rmtree(path)<br>    elif os.path.exists(path):<br>        test.support.unlink(path)<br></div></div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Giampaolo - <a href="http://grodola.blogspot.com" target="_blank">http://grodola.blogspot.com</a></div><div><br></div></div></div></div></div>