Commit 4aedea4c authored by Jim Fulton's avatar Jim Fulton

skip umask test on windows

parent 8f11b54e
...@@ -705,16 +705,6 @@ The scripts that are generated are made executable: ...@@ -705,16 +705,6 @@ The scripts that are generated are made executable:
... os.access(os.path.join(bin, 'run'), os.X_OK) ... os.access(os.path.join(bin, 'run'), os.X_OK)
True True
For setting the executable permission, the user's umask is honored:
>>> orig_umask = os.umask(0o077) # Only user gets permissions.
>>> zc.buildout.easy_install._execute_permission() == 0o700
True
>>> tmp = os.umask(0o022) # User can write, the rest not.
>>> zc.buildout.easy_install._execute_permission() == 0o755
True
>>> tmp = os.umask(orig_umask) # Reset umask to the original value.
Including extra paths in scripts Including extra paths in scripts
-------------------------------- --------------------------------
......
...@@ -2872,6 +2872,22 @@ def test_buildout_section_shorthand_for_command_line_assignments(): ...@@ -2872,6 +2872,22 @@ def test_buildout_section_shorthand_for_command_line_assignments():
>>> print_(system(buildout+' parts='), end='') # doctest: +ELLIPSIS >>> print_(system(buildout+' parts='), end='') # doctest: +ELLIPSIS
""" """
def buildout_honors_umask():
"""
For setting the executable permission, the user's umask is honored:
>>> orig_umask = os.umask(0o077) # Only user gets permissions.
>>> zc.buildout.easy_install._execute_permission() == 0o700
True
>>> tmp = os.umask(0o022) # User can write, the rest not.
>>> zc.buildout.easy_install._execute_permission() == 0o755
True
>>> tmp = os.umask(orig_umask) # Reset umask to the original value.
"""
if sys.platform == 'win32':
del buildout_honors_umask # umask on dohs is academic
###################################################################### ######################################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment