diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-07-04 01:21:38 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-07-04 01:21:38 (GMT) |
commit | c8763b9d96510fd4fa0ec40ab3f188f3dd6b70ef (patch) | |
tree | 7cd8a9ee5099a4209aaac10d9b893bce8611d73f | |
parent | 80dffefcd9885fa59356eaf6931ca11a99cbb392 (diff) | |
download | cpython-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.py | 2 |
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. |