2 more unit test bugs found by alexander (can't change atime on win32)
This commit is contained in:
Robey Pointer 2006-04-28 10:24:01 -07:00
parent c05200dcc6
commit 9819087210
1 changed files with 4 additions and 2 deletions

View File

@ -301,6 +301,7 @@ class SFTPTest (unittest.TestCase):
sftp.utime(FOLDER + '/special', (atime, mtime))
stat = sftp.stat(FOLDER + '/special')
self.assertEqual(stat.st_mtime, mtime)
if sys.platform != 'win32':
self.assertEqual(stat.st_atime, atime)
# can't really test chown, since we'd have to know a valid uid.
@ -338,6 +339,7 @@ class SFTPTest (unittest.TestCase):
f.utime((atime, mtime))
stat = f.stat()
self.assertEqual(stat.st_mtime, mtime)
if sys.platform != 'win32':
self.assertEqual(stat.st_atime, atime)
# can't really test chown, since we'd have to know a valid uid.