diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-09-18 02:55:03 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-09-18 02:55:03 (GMT) |
commit | 0c25b45bd8e8a18b3c0f13cdc54de68f17a87975 (patch) | |
tree | 46b958bfa90947abc4ca4a8154b9afeebcacad02 /Lib/distutils | |
parent | 90387ff4b0caf02e74dacc5d042360a88b5e19d0 (diff) | |
download | cpython-0c25b45bd8e8a18b3c0f13cdc54de68f17a87975.zip cpython-0c25b45bd8e8a18b3c0f13cdc54de68f17a87975.tar.gz cpython-0c25b45bd8e8a18b3c0f13cdc54de68f17a87975.tar.bz2 |
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) |