]> granicus.if.org Git - python/commitdiff
Skip the distutils mode test on Windows OS.
authorSenthil Kumaran <orsenthil@gmail.com>
Sat, 18 Sep 2010 02:55:03 +0000 (02:55 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Sat, 18 Sep 2010 02:55:03 +0000 (02:55 +0000)
Lib/distutils/tests/test_dir_util.py

index 8986ca55d4e00b6f35ce74f022409cf6c67a2d6e..892a66d2adf9e240495d8501a5b0d2f95eecc5ac 100644 (file)
@@ -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)