[Python-checkins] r84871 - python/branches/py3k/Lib/distutils/tests/test_dir_util.py

senthil.kumaran python-checkins at python.org
Sat Sep 18 04:55:03 CEST 2010


Author: senthil.kumaran
Date: Sat Sep 18 04:55:03 2010
New Revision: 84871

Log:
Skip the distutils mode test on Windows OS. 



Modified:
   python/branches/py3k/Lib/distutils/tests/test_dir_util.py

Modified: python/branches/py3k/Lib/distutils/tests/test_dir_util.py
==============================================================================
--- python/branches/py3k/Lib/distutils/tests/test_dir_util.py	(original)
+++ python/branches/py3k/Lib/distutils/tests/test_dir_util.py	Sat Sep 18 04:55:03 2010
@@ -3,6 +3,7 @@
 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 @@
         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)


More information about the Python-checkins mailing list