fix new cygwin test failures reported by alexander
This commit is contained in:
Robey Pointer 2006-05-12 10:25:44 -07:00
parent da04f66cf6
commit 0ad8405d15
1 changed files with 2 additions and 2 deletions

View File

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