[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-09-01 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - resolved status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22315 ___

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
New submission from Jason R. Coombs: This morning, I was running an install of a package on Python 3.4.1 when I encountered this error: C:\Users\jaraco\projects\jaraco.financial [default tip] ./setup install running install running bdist_egg running egg_info writing namespace_packages to

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: On a second attempt, the operation completed successfully, so a transient network error was necessary to elicit the bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22315

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- hgrepos: +272 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22315 ___ ___ Python-bugs-list

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- keywords: +patch Added file: http://bugs.python.org/file36514/7304b9b95438.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22315 ___

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've started work on a test to capture the failure. Patch 7304b9 is attached. Any comments on the test before I proceed with the fix? I haven't been able to run the test, so if someone could do that, it would be most appreciated. --

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Claudiu Popa
Claudiu Popa added the comment: A similar issue was fixed a couple of days ago in file_util.py, with f01413758114. It would be nice to have similar tests. -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Claudiu Popa
Claudiu Popa added the comment: I'm referring to the TypeError: 'OSError' object is not iterable failure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22315 ___

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7304b9b95438 by Jason R. Coombs in branch '3.4': #22315: Add test to capture the failure. http://hg.python.org/cpython/rev/7304b9b95438 New changeset 300cd36eb25c by Jason R. Coombs in branch '3.4': #22315: Use technique outlined in test_file_util

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
Jason R. Coombs added the comment: Claudiu, thanks for the tip. That was quite helpful. I did not realize that unittest included a mock implementation. I've updated the test to use the same technique. I've furthermore verified that the test captures the failure and adjusted the implementation

[issue22315] TypeError in error handling in distutils.dir_util.copy_tree

2014-08-31 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- stage: resolved - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22315 ___