[Python-checkins] cpython (3.2): Fix closes issue issue12470 - check for utime for the skipUnless condition.
georg.brandl
python-checkins at python.org
Sat Jul 9 10:58:08 CEST 2011
http://hg.python.org/cpython/rev/f92bf428c647
changeset: 71273:f92bf428c647
branch: 3.2
user: Senthil Kumaran <senthil at uthcode.com>
date: Sun Jul 03 18:21:38 2011 -0700
summary:
Fix closes issue issue12470 - check for utime for the skipUnless condition.
files:
Lib/test/test_shutil.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -427,7 +427,7 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list