New issue 2759: os.makedirs behaviour differs from cPython
https://bitbucket.org/pypy/pypy/issues/2759/osmakedirs-behaviour-differs-from-cpython
AmgicServer:
```
$ chmod 777 /tmp/mydir
$ pypy3 -c "import os; os.makedirs('/tmp/mydir', exist_ok=True)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/pypy3-5.5.0/lib-python/3/os.py", line 269, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 777 != expected mode 755):
'/tmp/mydir'
$ pypy3 --version
Python 3.3.5 (19b4b275ee9c, Aug 04 2017, 13:10:56)
[PyPy 5.5.0-alpha0 with GCC 7.1.1 20170718 (Red Hat 7.1.1-6)]
$ python3 -c "import os; os.makedirs('/tmp/mydir', exist_ok=True)"
$ python3 --version
Python 3.5.2
```
On the cPython documentation there is a relevant note about this:
https://docs.python.org/3/library/os.html#os.makedirs
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue