diff options
author | jquast <contact@jeffquast.com> | 2013-09-22 19:32:33 -0700 |
---|---|---|
committer | jquast <contact@jeffquast.com> | 2013-09-22 19:32:33 -0700 |
commit | c851a110a61f20c2163aacdf6afe210d572d777b (patch) | |
tree | 6b07f4c3638b22fe5552efe333e0397fa4d9c8fd /tests/test_isalive.py | |
parent | a83cf59505e18fd4ee0c84c4a1dd724e6f916e16 (diff) | |
download | pexpect-git-c851a110a61f20c2163aacdf6afe210d572d777b.tar.gz |
py2.5 compatibilities w/six.py
-except Exception as e:
+except Exception, err:
the unfortunate use of six.b('') instead of b''
print(arg0, arg1) => six.print_(arg0, arg1)
some autopep8 -i is definitely called for, some of these test cases are darn unreadable, but did partially pep8 some of the really-long-over-80col-lines.
Diffstat (limited to 'tests/test_isalive.py')
-rwxr-xr-x | tests/test_isalive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_isalive.py b/tests/test_isalive.py index d18996c..7f02b9e 100755 --- a/tests/test_isalive.py +++ b/tests/test_isalive.py @@ -43,7 +43,7 @@ class IsAliveTestCase(PexpectTestCase.PexpectTestCase): time.sleep(1) try: p.wait() - except pexpect.ExceptionPexpect as e: + except pexpect.ExceptionPexpect: pass else: self.fail ('Should have raised ExceptionPython because you can\'t call wait on a dead process.') |