summaryrefslogtreecommitdiff
path: root/pexpect/tests/test_run.py
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2005-09-08 23:46:06 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2005-09-08 23:46:06 +0000
commit3d56154aeb04646cb2b34b4fa313f79ebea7e3e9 (patch)
treeabc796df5513efce177157f0ea63caad502f3198 /pexpect/tests/test_run.py
parent18bbd3c9a61db6f3489d68f139e825aae3880727 (diff)
downloadpexpect-3d56154aeb04646cb2b34b4fa313f79ebea7e3e9.tar.gz
I changed run so that returning a tuple is a named option (withexitstatus).
The option is OFF by default. git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@263 656d521f-e311-0410-88e0-e7920216d269
Diffstat (limited to 'pexpect/tests/test_run.py')
-rwxr-xr-xpexpect/tests/test_run.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/tests/test_run.py b/pexpect/tests/test_run.py
index f4f5ab4..c03602a 100755
--- a/pexpect/tests/test_run.py
+++ b/pexpect/tests/test_run.py
@@ -16,7 +16,7 @@ class ExpectTestCase(unittest.TestCase):
def test_run (self):
the_old_way = commands.getoutput('ls -l /bin')
- (the_new_way, exitstatus) = pexpect.run ('ls -l /bin')
+ (the_new_way, exitstatus) = pexpect.run ('ls -l /bin', withexitstatus=1)
the_new_way = the_new_way.replace('\r','')[:-1]
assert the_old_way == the_new_way
assert exitstatus == 0