<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">On Thu, Feb 14, 2019, 02:47 Ronald Oussoren via Python-Dev <<a href="mailto:python-dev@python.org">python-dev@python.org</a> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div><div>I usually use shutil.rmtree for tests that need to create temporary files, and create a temporary directory for those files (that is, use tempfile.mkdtemp in setUp() and use shutil.rmtree in tearDown()). That way I don’t have to adjust house-keeping code when I make changes to test code.</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">Same here.</div><div dir="auto"><br></div><div dir="auto">-eric</div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div>