summaryrefslogtreecommitdiffhomepage
path: root/tests/test_sftp.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-05-03 09:35:31 -0700
committerRobey Pointer <robey@lag.net>2006-05-03 09:35:31 -0700
commitaac434e9b08f436dd742c744a56e7eb3c62306b8 (patch)
treefd959f5492012f3f178a4fbe664c8819815ead6d /tests/test_sftp.py
parent2067e9a1368376f5ac7955874362679751562eca (diff)
[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)
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-xtests/test_sftp.py6
1 files changed, 6 insertions, 0 deletions
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)