From 98190872102d9623ffefae0c6dd916ab7dac0bf3 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Fri, 28 Apr 2006 10:24:01 -0700 Subject: [PATCH] [project @ robey@lag.net-20060428172401-ad8da020daedd941] 2 more unit test bugs found by alexander (can't change atime on win32) --- tests/test_sftp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 3bc11e3..86b6657 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -301,7 +301,8 @@ class SFTPTest (unittest.TestCase): sftp.utime(FOLDER + '/special', (atime, mtime)) stat = sftp.stat(FOLDER + '/special') self.assertEqual(stat.st_mtime, mtime) - self.assertEqual(stat.st_atime, atime) + 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,7 +339,8 @@ class SFTPTest (unittest.TestCase): f.utime((atime, mtime)) stat = f.stat() self.assertEqual(stat.st_mtime, mtime) - self.assertEqual(stat.st_atime, atime) + if sys.platform != 'win32': + self.assertEqual(stat.st_atime, atime) # can't really test chown, since we'd have to know a valid uid.