Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
python-fs
fs-testing-fix-missing-paramiko.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fs-testing-fix-missing-paramiko.diff of Package python-fs
Index: b/fs/tests/test_expose.py =================================================================== --- a/fs/tests/test_expose.py +++ b/fs/tests/test_expose.py @@ -31,29 +31,26 @@ try: from fs import sftpfs from fs.expose.sftp import BaseSFTPServer except ImportError: - if not PY3: - raise - -import logging -logging.getLogger('paramiko').setLevel(logging.ERROR) -logging.getLogger('paramiko.transport').setLevel(logging.ERROR) - - -class TestSFTPFS(TestRPCFS): - - __test__ = not PY3 - - def makeServer(self,fs,addr): - return BaseSFTPServer(addr,fs) - - def setUp(self): - self.startServer() - self.fs = sftpfs.SFTPFS(self.server_addr, no_auth=True) - - def bump(self): - # paramiko doesn't like being bumped, just wait for it to timeout. - # TODO: do this using a paramiko.Transport() connection - pass + pass +else: + import logging + logging.getLogger('paramiko').setLevel(logging.ERROR) + logging.getLogger('paramiko.transport').setLevel(logging.ERROR) + + + class TestSFTPFS(TestRPCFS): + + def makeServer(self,fs,addr): + return BaseSFTPServer(addr,fs) + + def setUp(self): + self.startServer() + self.fs = sftpfs.SFTPFS(self.server_addr, no_auth=True) + + def bump(self): + # paramiko doesn't like being bumped, just wait for it to timeout. + # TODO: do this using a paramiko.Transport() connection + pass try:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor