[Python-checkins] r84872 - in python/branches/release31-maint: Lib/distutils/tests/test_dir_util.py

senthil.kumaran python-checkins at python.org
Sat Sep 18 04:57:28 CEST 2010


Author: senthil.kumaran
Date: Sat Sep 18 04:57:28 2010
New Revision: 84872
Log:
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 (2010年9月18日) | 3 lines
 
 Skip the distutils mode test on Windows OS. 
........
Modified:
 python/branches/release31-maint/ (props changed)
 python/branches/release31-maint/Lib/distutils/tests/test_dir_util.py
Modified: python/branches/release31-maint/Lib/distutils/tests/test_dir_util.py
==============================================================================
--- python/branches/release31-maint/Lib/distutils/tests/test_dir_util.py	(original)
+++ python/branches/release31-maint/Lib/distutils/tests/test_dir_util.py	Sat Sep 18 04:57:28 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

AltStyle によって変換されたページ (->オリジナル) /