diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 3036637..3377621 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -304,7 +304,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': + if sys.platform not in ('win32', 'cygwin'): self.assertEqual(stat.st_atime, atime) # 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)) stat = f.stat() self.assertEqual(stat.st_mtime, mtime) - if sys.platform != 'win32': + if sys.platform not in ('win32', 'cygwin'): self.assertEqual(stat.st_atime, atime) # can't really test chown, since we'd have to know a valid uid.