diff options
author | Robey Pointer <robey@lag.net> | 2006-04-28 10:24:01 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-04-28 10:24:01 -0700 |
commit | 98190872102d9623ffefae0c6dd916ab7dac0bf3 (patch) | |
tree | 037380d220cce6f7302ea43d8d6b75774cb9e8f0 /tests/test_sftp.py | |
parent | c05200dcc6f77f1901246a3f4da069f1ccb3d06f (diff) |
[project @ robey@lag.net-20060428172401-ad8da020daedd941]
2 more unit test bugs found by alexander (can't change atime on win32)
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-x | tests/test_sftp.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 3bc11e3e..86b66578 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. |