summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-07-04 01:21:38 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2011-07-04 01:21:38 (GMT)
commitc8763b9d96510fd4fa0ec40ab3f188f3dd6b70ef (patch)
tree7cd8a9ee5099a4209aaac10d9b893bce8611d73f
parent80dffefcd9885fa59356eaf6931ca11a99cbb392 (diff)
downloadcpython-c8763b9d96510fd4fa0ec40ab3f188f3dd6b70ef.zip
cpython-c8763b9d96510fd4fa0ec40ab3f188f3dd6b70ef.tar.gz
cpython-c8763b9d96510fd4fa0ec40ab3f188f3dd6b70ef.tar.bz2
Fix closes issue issue12470 - check for utime for the skipUnless condition.
-rw-r--r--Lib/test/test_shutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 475a26b..e2310e2 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -427,7 +427,7 @@ class TestShutil(unittest.TestCase):
self.assertEqual(os.stat(file1).st_mode, os.stat(file2).st_mode)
@unittest.skipUnless(hasattr(os, 'chmod'), 'requires os.chmod')
- @unittest.skipUnless(hasattr(os, 'chmod'), 'requires os.utime')
+ @unittest.skipUnless(hasattr(os, 'utime'), 'requires os.utime')
def test_copy2(self):
# Ensure that the copied file exists and has the same mode and
# modification time bits.