diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-11-19 07:30:45 -0800 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-11-19 07:30:45 -0800 |
commit | 3ce336c88b7bfbfad03fab17bff8cb3c3a77176c (patch) | |
tree | 4ca12e253bc782025d756add21c755f3c336f07d /test.py | |
parent | 01731fa2c34483ec6d429a23bf9d19126f63f618 (diff) |
Change conditional from PY3 to PY2 to be better prepared for a possible Py4.
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |