[issue9509] argparse FileType raises ugly exception for missing file

SilentGhost report at bugs.python.org
Fri Nov 26 18:25:57 CET 2010

SilentGhost <michael.mischurow+bpo at gmail.com> added the comment:

On windows proposed changes to Lib/test/test_argparse.py cause it to enter an infinite loop in TempDirMixin.tearDown method.

As it seemed exclusively Windows issue, this new patch replaces while loop with the ignore_errors parameter for shutil.rmtree.

Now all test pass.

Added file: http://bugs.python.org/file19827/test_argparse.py.diff

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list