diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-09-18 02:57:28 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-09-18 02:57:28 (GMT) |
commit | 107324cf7c7fd418f2f9d395894a40df758cc449 (patch) | |
tree | 15c1720b90b5906f6721b8941d381663e60fd8c7 /Lib/distutils | |
parent | d0ca013f2553aa7a32a07d3b80a9ecad9780682c (diff) | |
download | cpython-107324cf7c7fd418f2f9d395894a40df758cc449.zip cpython-107324cf7c7fd418f2f9d395894a40df758cc449.tar.gz cpython-107324cf7c7fd418f2f9d395894a40df758cc449.tar.bz2 |
Merged revisions 84871 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84871 | senthil.kumaran | 2010-09-18 08:25:03 +0530 (Sat, 18 Sep 2010) | 3 lines
Skip the distutils mode test on Windows OS.
........
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_dir_util.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_dir_util.py b/Lib/distutils/tests/test_dir_util.py index 8986ca5..892a66d 100644 --- a/Lib/distutils/tests/test_dir_util.py +++ b/Lib/distutils/tests/test_dir_util.py @@ -3,6 +3,7 @@ import unittest import os import stat import shutil +import sys from distutils.dir_util import (mkpath, remove_tree, create_tree, copy_tree, ensure_relative) @@ -49,6 +50,8 @@ class DirUtilTestCase(support.TempdirManager, unittest.TestCase): wanted = ["removing '%s' (and everything under it)" % self.root_target] self.assertEquals(self._logs, wanted) + @unittest.skipIf(sys.platform.startswith('win'), + "This test is only appropriate for POSIX-like systems.") def test_mkpath_with_custom_mode(self): mkpath(self.target, 0o700) self.assertEqual(stat.S_IMODE(os.stat(self.target).st_mode), 0o700) |