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 | 0c2dba5726ca5aee41ad7e7920f0c07a548f0a49 (patch) | |
tree | 1ba5595983c41061de0665277819dd1db1f4442d /Lib/test/test_shutil.py | |
parent | 8b0508ed4e1ab32422cf2494c7cd345634912b98 (diff) | |
download | cpython-0c2dba5726ca5aee41ad7e7920f0c07a548f0a49.zip cpython-0c2dba5726ca5aee41ad7e7920f0c07a548f0a49.tar.gz cpython-0c2dba5726ca5aee41ad7e7920f0c07a548f0a49.tar.bz2 |
Fix closes issue issue12470 - check for utime for the skipUnless condition.
Diffstat (limited to 'Lib/test/test_shutil.py')
-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. |