summaryrefslogtreecommitdiff
path: root/tests/test_interact.py
diff options
context:
space:
mode:
authorjquast <contact@jeffquast.com>2013-09-22 22:09:50 -0700
committerjquast <contact@jeffquast.com>2013-09-22 22:09:50 -0700
commit4dc72b747b243f61386180d0f505453f195ea169 (patch)
treeff6e2b9b03373d92459ed486b0f394caff5a10f4 /tests/test_interact.py
parent5e16434c48218035684b3a15e3b8406e7fc8df7a (diff)
downloadpexpect-git-4dc72b747b243f61386180d0f505453f195ea169.tar.gz
hopefully fix py3 errors with correct string fmt
Diffstat (limited to 'tests/test_interact.py')
-rwxr-xr-xtests/test_interact.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_interact.py b/tests/test_interact.py
index 6754f2f..ab77228 100755
--- a/tests/test_interact.py
+++ b/tests/test_interact.py
@@ -38,7 +38,7 @@ class InteractTestCase (PexpectTestCase.PexpectTestCase):
# Note that I had to add a delay in the swapcase_echo.py script.
# I'm not sure why this helped.
- p = pexpect.spawn('%s swapcase_echo.py' % self.PYTHONBIN)
+ p = pexpect.spawn('%s swapcase_echo.py' % (self.PYTHONBIN,))
mode = tty.tcgetattr(p.STDIN_FILENO)
t = threading.Thread (target=start_interact, args=(p,))
t.start()
@@ -67,7 +67,7 @@ class InteractTestCase (PexpectTestCase.PexpectTestCase):
# tty.tcsetattr(p.STDIN_FILENO, tty.TCSAFLUSH, mode)
def test_interact (self):
- p = pexpect.spawn('%s interact.py' % self.PYTHONBIN)
+ p = pexpect.spawn('%s interact.py' % (self.PYTHONBIN,))
p.sendline (six.b('Hello'))
p.sendline (six.b('there'))
p.sendline (six.b('Mr. Python'))