[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1fc1f8d7f737f80a1ee5ea37b9781c0a790102b2 by Serhiy Storchaka in branch '3.5': bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805) (#807) https://github.com/python/cpython/commit/1fc1f8d7f737f80a1ee5ea37b9781c0a790102b2

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8c8785b2f8e4048cef350f89c686266f4519b67c by Serhiy Storchaka in branch '3.6': bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True)… (#806) https://github.com/python/cpython/commit/8c8785b2f8e4048cef350f89c686266f4519b67c

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +712 ___ Python tracker ___ ___

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +711 ___ Python tracker ___ ___

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset af7b9ec5c855366feef4c67dc492d64b3baf84ca by Serhiy Storchaka in branch 'master': bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805) https://github.com/python/cpython/commit/af7b9ec5c855366feef4c67dc492d64b3baf84ca

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't test on Windows and OSX but I suppose PR 805 fixes both issues. -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review versions: +Python 3.7 ___ Python tracker

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +710 ___ Python tracker ___ ___

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2015-12-05 Thread Daniel Lepage
Daniel Lepage added the comment: It looks like this is an OSX-specific behavior, and not a python problem: $ mkdir . mkdir: .: File exists $ mkdir / mkdir: /: Is a directory -- ___ Python tracker

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2015-12-05 Thread Eryk Sun
Eryk Sun added the comment: The mkdir method needs a fix similar to what was done for issue 25583. For example, currently on Windows the exist_ok option doesn't handle the PermissionError raised when [accidentally] trying to create the root directory: >>>

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2015-12-05 Thread Eryk Sun
Changes by Eryk Sun : -- nosy: +pitrou versions: +Python 3.6 ___ Python tracker ___ ___

[issue25803] pathlib.Path('/').mkdir() raises wrong error type

2015-12-04 Thread Daniel Lepage
New submission from Daniel Lepage: pathlib.Path('/').mkdir() raises an IsADirectoryError instead of a FileExistsError. -- components: Library (Lib) messages: 255916 nosy: Daniel Lepage priority: normal severity: normal status: open title: pathlib.Path('/').mkdir() raises wrong error