This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, r.david.murray
Date 2011-02-28.21:43:35
SpamBayes Score 1.2641838e-06
Marked as misclassified No
Message-id <1298929416.89.0.842334424532.issue11355@psf.upfronthosting.co.za>
In-reply-to
Content
A side effect of this patch is that it fixes failure of test_exist_ok_existing_directory() from test_os.py in situation when top-level directory of Python sources has SGID bit set. (test_exist_ok_existing_directory() exists only in Python >=3.2.)

$ chmod g+s .
$ LD_LIBRARY_PATH=$(pwd) ./python Lib/test/test_os.py
...
======================================================================
ERROR: test_exist_ok_existing_directory (__main__.MakedirTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_os.py", line 653, in test_exist_ok_existing_directory
    os.makedirs(path, mode=mode, exist_ok=True)
  File "/var/tmp/portage/dev-lang/python-3.3_pre20110227/work/python-3.3_pre20110227/Lib/os.py", line 152, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '@test_32218_tmp/dir1'

----------------------------------------------------------------------
History
Date User Action Args
2011-02-28 21:43:36Arfreversetrecipients: + Arfrever, r.david.murray
2011-02-28 21:43:36Arfreversetmessageid: <1298929416.89.0.842334424532.issue11355@psf.upfronthosting.co.za>
2011-02-28 21:43:35Arfreverlinkissue11355 messages
2011-02-28 21:43:35Arfrevercreate