[Python-Dev] Adding test.support.safe_rmpath()

Giampaolo Rodola' g.rodola at gmail.com
Fri Feb 15 07:44:07 EST 2019

On Thu, Feb 14, 2019 at 6:48 PM Brett Cannon <brett at python.org> wrote:

> With -j you can do parallel testing and I know I always run with that on.
> But TESTFN does *attempt *to account for that
> <https://github.com/python/cpython/blob/8a1657b93469580ef345c7c91738587f3d76e87d/Lib/test/support/__init__.py#L835>
> by using the PID in the name.

Good to know, thanks. TESTFN aside, I was more interested in knowing if
there's interest in landing something like this in test.support:

def rmpath(path):
    "Try to remove a path regardless of its type."
    if os.path.isdir(path):
    elif os.path.exists(path):

Giampaolo - http://grodola.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20190215/16a033f6/attachment.html>

More information about the Python-Dev mailing list