diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-09-08 10:42:59 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-09-08 10:42:59 -0700 |
commit | 615c30759f62c1ccb5120223f12d1415d09a3566 (patch) | |
tree | 99bed6c92ab7f8767e3386c11f5826d059503381 /test.py | |
parent | 77b1aaccc6dcc17108da17dc609c81bdd4e9a0e5 (diff) | |
parent | ec9f8a26d4ea77ce6e4a1afe1a9e3b29dbf002bf (diff) |
Merge branch 'master' into 298-int
Conflicts:
setup.py
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -101,12 +101,12 @@ def main(): parser.add_option('-P', '--sftp-passwd', dest='password', type='string', default=default_passwd, metavar='<password>', help='[with -R] (optional) password to unlock the private key for remote sftp tests') - + options, args = parser.parse_args() - + # setup logging paramiko.util.log_to_file('test.log') - + if options.use_sftp: from tests.test_sftp import SFTPTest if options.use_loopback_sftp: @@ -149,10 +149,7 @@ def main(): # TODO: make that not a problem, jeez for thread in threading.enumerate(): if thread is not threading.currentThread(): - if PY2: - thread._Thread__stop() - else: - thread._stop() + thread.join(timeout=1) # Exit correctly if not result.wasSuccessful(): sys.exit(1) |