]> granicus.if.org Git - python/commitdiff
Fix closes issue issue12470 - check for utime for the skipUnless condition.
authorSenthil Kumaran <senthil@uthcode.com>
Mon, 4 Jul 2011 01:21:38 +0000 (18:21 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Mon, 4 Jul 2011 01:21:38 +0000 (18:21 -0700)
Lib/test/test_shutil.py

index 475a26b4865f4a00d11dd0ebc56913050d075967..e2310e26f3ce60b54b75acdc450c24c35d893b5c 100644 (file)
@@ -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.