summaryrefslogtreecommitdiffhomepage
path: root/test.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-19 07:30:45 -0800
committerScott Maxwell <scott@codecobblers.com>2013-11-19 07:30:45 -0800
commit3ce336c88b7bfbfad03fab17bff8cb3c3a77176c (patch)
tree4ca12e253bc782025d756add21c755f3c336f07d /test.py
parent01731fa2c34483ec6d429a23bf9d19126f63f618 (diff)
Change conditional from PY3 to PY2 to be better prepared for a possible Py4.
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test.py b/test.py
index c8ac6bc3..bd966d1e 100755
--- a/test.py
+++ b/test.py
@@ -29,7 +29,7 @@ import unittest
from optparse import OptionParser
import paramiko
import threading
-from paramiko.py3compat import PY3
+from paramiko.py3compat import PY2
sys.path.append('tests')
@@ -149,10 +149,10 @@ def main():
# TODO: make that not a problem, jeez
for thread in threading.enumerate():
if thread is not threading.currentThread():
- if PY3:
- thread._stop()
- else:
+ if PY2:
thread._Thread__stop()
+ else:
+ thread._stop()
# Exit correctly
if not result.wasSuccessful():
sys.exit(1)