[issue13170] distutils2 test failures

David Barnett report at bugs.python.org
Fri Oct 28 06:56:32 CEST 2011


David Barnett <davidbarnett2 at gmail.com> added the comment:

The remaining test (test_command_install_data.InstallDataTestCase.test_simple_run) was broken in r1152. What's happening is that the type of exception being raised was changed and it's getting through the try/except block in install_data.run().

Instead of calling shutil.copyfile, the code in 1152 is calling distutils2._backport.shutil.copyfile, which instead of raising a shutil.Error instance raises a distutils2._backport.shutil.Error instance.

Ideally, I think distutils2/_backport/shutil.py should do "from shutil import Error" instead of defining its own Error class, but I'm not sure if that's kosher for the way backports are supposed to work, and importing shutil from the stdlib is broken in that file besides.

----------

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


More information about the Python-bugs-list mailing list