Skip to content

Commit d79362c

Browse files
author
Martin Larralde
committed
Skip multithreading tests failing in Python 3.4
1 parent aef6175 commit d79362c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

tests/test_sshfs.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import unicode_literals
44

55
import stat
6+
import sys
67
import time
78
import uuid
89
import unittest
@@ -46,6 +47,38 @@ def make_fs(self):
4647
self.ssh_fs.makedir(self.test_folder, recreate=True)
4748
return self.ssh_fs.opendir(self.test_folder, factory=ClosingSubFS)
4849

50+
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'hangs in Python 3.4')
51+
def test_download_0(self):
52+
super(TestSSHFS, self).test_download_0()
53+
54+
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'hangs in Python 3.4')
55+
def test_download_1(self):
56+
super(TestSSHFS, self).test_download_1()
57+
58+
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'hangs in Python 3.4')
59+
def test_download_2(self):
60+
super(TestSSHFS, self).test_download_2()
61+
62+
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'hangs in Python 3.4')
63+
def test_download_4(self):
64+
super(TestSSHFS, self).test_download_4()
65+
66+
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'hangs in Python 3.4')
67+
def test_upload_0(self):
68+
super(TestSSHFS, self).test_upload_0()
69+
70+
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'hangs in Python 3.4')
71+
def test_upload_1(self):
72+
super(TestSSHFS, self).test_upload_1()
73+
74+
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'hangs in Python 3.4')
75+
def test_upload_2(self):
76+
super(TestSSHFS, self).test_upload_2()
77+
78+
@unittest.skipIf(sys.version_info[:2] == (3, 4), 'hangs in Python 3.4')
79+
def test_upload_4(self):
80+
super(TestSSHFS, self).test_upload_4()
81+
4982
def test_chmod(self):
5083
self.fs.touch("test.txt")
5184
remote_path = fs.path.join(self.test_folder, "test.txt")

0 commit comments

Comments
 (0)