mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix closes issue issue12470 - check for utime for the skipUnless condition.
This commit is contained in:
parent
8b0508ed4e
commit
0c2dba5726
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue