From aac434e9b08f436dd742c744a56e7eb3c62306b8 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Wed, 3 May 2006 09:35:31 -0700 Subject: [project @ robey@lag.net-20060503163531-2297cd257acc51e5] make a slightly different exception for the expected mode on cygwin (why would they add support for some but not all of the unix mode bits? very odd) --- tests/test_sftp.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/test_sftp.py') diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 86b66578..30366371 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -293,6 +293,9 @@ class SFTPTest (unittest.TestCase): if sys.platform == 'win32': # chmod not really functional on windows expected_mode = 0666 + if sys.platform == 'cygwin': + # even worse. + expected_mode = 0644 self.assertEqual(stat.st_mode & 0777, expected_mode) self.assertEqual(stat.st_size, 1024) @@ -331,6 +334,9 @@ class SFTPTest (unittest.TestCase): if sys.platform == 'win32': # chmod not really functional on windows expected_mode = 0666 + if sys.platform == 'cygwin': + # even worse. + expected_mode = 0644 self.assertEqual(stat.st_mode & 0777, expected_mode) self.assertEqual(stat.st_size, 1024) -- cgit v1.2.3