[issue15403] Refactor package creation support code into a common location

Chris Jerdonek report at bugs.python.org
Thu Jul 26 20:58:10 CEST 2012


Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:

It occurs to me that the filecmp/dircmp tests in Lib/test/test_filecmp.py would also benefit from code like this (i.e. being able to create a nested directory of files in one or two lines).  And perhaps elsewhere in the tests.

This is an argument for slightly generalizing the test support API in the uploaded patch from creating modules/packages to creating files/directories.  A convenience wrapper for packages could still be included that includes an __init__.py in the calls to the underlying directory code.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15403>
_______________________________________


More information about the Python-bugs-list mailing list