mirror of
https://github.com/python/cpython.git
synced 2025-08-10 11:58:39 +00:00
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. ........
This commit is contained in:
parent
8fc843b38e
commit
a171cf064a
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@ import unittest
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
import shutil
|
import shutil
|
||||||
|
import sys
|
||||||
|
|
||||||
from distutils.dir_util import (mkpath, remove_tree, create_tree, copy_tree,
|
from distutils.dir_util import (mkpath, remove_tree, create_tree, copy_tree,
|
||||||
ensure_relative)
|
ensure_relative)
|
||||||
|
@ -49,6 +50,8 @@ class DirUtilTestCase(support.TempdirManager, unittest.TestCase):
|
||||||
wanted = ["removing '%s' (and everything under it)" % self.root_target]
|
wanted = ["removing '%s' (and everything under it)" % self.root_target]
|
||||||
self.assertEquals(self._logs, wanted)
|
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):
|
def test_mkpath_with_custom_mode(self):
|
||||||
mkpath(self.target, 0o700)
|
mkpath(self.target, 0o700)
|
||||||
self.assertEqual(stat.S_IMODE(os.stat(self.target).st_mode), 0o700)
|
self.assertEqual(stat.S_IMODE(os.stat(self.target).st_mode), 0o700)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue