summaryrefslogtreecommitdiffhomepage
path: root/test.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-09-08 10:42:59 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-09-08 10:42:59 -0700
commit615c30759f62c1ccb5120223f12d1415d09a3566 (patch)
tree99bed6c92ab7f8767e3386c11f5826d059503381 /test.py
parent77b1aaccc6dcc17108da17dc609c81bdd4e9a0e5 (diff)
parentec9f8a26d4ea77ce6e4a1afe1a9e3b29dbf002bf (diff)
Merge branch 'master' into 298-int
Conflicts: setup.py
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/test.py b/test.py
index bd966d1e..92a3e6d0 100755
--- a/test.py
+++ b/test.py
@@ -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)