Chris Jerdonek <chris.jerdo...@gmail.com> added the comment:

I created issue 15415 and uploaded a patch there with this issue in mind.

test_runpy contains supporting _make_pkg() and _del_pkg() methods that,
among other things, create and delete a temp directory.  That logic
would be better handled by a temp directory context manager.

The patch uploaded to issue 15415 creates such a context manager and
also unit-tests it.  It also reduces the duplication of temp
directory logic between test/script_helper.py and test/support.py.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15376>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to