Daniel Kahn Gillmor added the comment:
and here is python demonstration script that will build breaker.c and then use
it to cause the error to be raised from shutils.rmtree.
the output of demo.py looks like this:
make: 'breaker' is up to date.
Traceback (most recent call last):
File "./demo.py", line 14, in <module>
shutil.rmtree('xx')
File "/usr/lib/python3.5/shutil.py", line 480, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib/python3.5/shutil.py", line 438, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/usr/lib/python3.5/shutil.py", line 436, in _rmtree_safe_fd
os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'b'
----------
Added file: http://bugs.python.org/file46688/demo.py
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue29699>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com