Author: Philip Jenvey <[email protected]>
Branch:
Changeset: r62931:f9a1fdbded60
Date: 2013-04-02 14:21 -0700
http://bitbucket.org/pypy/pypy/changeset/f9a1fdbded60/
Log: fix pexpect handling
diff --git a/rpython/rtyper/module/test/test_ll_termios.py
b/rpython/rtyper/module/test/test_ll_termios.py
--- a/rpython/rtyper/module/test/test_ll_termios.py
+++ b/rpython/rtyper/module/test/test_ll_termios.py
@@ -19,10 +19,8 @@
print str(termios.tcgetattr(2)[:-1])
''')
child = pexpect.spawn('python', [str(fname)])
- child.logfile = sys.stderr
- x = child.wait()
- assert x == 0
- mod.TCGETATTR = child.readlines()[0][:-2]
+ child.expect(pexpect.EOF)
+ mod.TCGETATTR = child.before[:-2]
class TestLLTermios(object):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit