[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-28 Thread Denis Sukhonin
New submission from Denis Sukhonin: shutil.rmtree doesn't work correctly on FreeBSD 9.1. For example if I create a path /tmp/test and try to remove it, I get an exception: >>> shutil.rmtree('/tmp/test') Traceback (most recent call last): File "", line 1, in

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Denis Sukhonin
Denis Sukhonin added the comment: It returns an integer. >>> import os >>> os.open('/tmp/test', os.O_RDONLY) 3 -- ___ Python tracker <ht

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Denis Sukhonin
Denis Sukhonin added the comment: No, it throws 22. >>> os.listdir(os.open('/tmp/test', os.O_RDONLY)) Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument -- ___ Python tra

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Denis Sukhonin
Denis Sukhonin added the comment: The same problem. >>> os.listdir(os.open('/tmp/test/', os.O_RDONLY)) Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument -- ___ Python tra