Kaydet (Commit) c8763b9d authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Fix closes issue issue12470 - check for utime for the skipUnless condition.

üst 80dffefc
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment