A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2019-February/156268.html below:

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

[Python-Dev] Adding test.support.safe_rmpath() [Python-Dev] Adding test.support.safe_rmpath()Ronald Oussoren ronaldoussoren at mac.com
Wed Feb 13 08:27:06 EST 2019
> On 13 Feb 2019, at 13:24, Giampaolo Rodola' <g.rodola at gmail.com> wrote:
> 
> 
> Hello,
> after discovering os.makedirs() has no unit-tests (https://bugs.python.org/issue35982 <https://bugs.python.org/issue35982>) I was thinking about working on a PR to increase the test coverage of fs-related os.* functions. In order to do so I think it would be useful to add a convenience function to "just delete something if it exists", regardless if it's a file, directory, directory tree, etc., and include it into test.support module.

Something like shutil.rmtree() with ignore_errors=True?

Ronald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20190213/e6d86cd7/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4