This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author davide.rizzo
Recipients akuchling, davide.rizzo, ezio.melotti, jesstess, mwh, neologix, sdaoden, vstinner
Date 2011-03-29.11:17:34
SpamBayes Score 1.5245138e-11
Marked as misclassified No
Message-id <1301397455.75.0.893044560763.issue11650@psf.upfronthosting.co.za>
In-reply-to
Content
An effective way to automate user interaction tests is by using pseudo-terminals. The attached test uses Pexpect and bash as tools to test the issue and demonstrates the bug on affected builds/platforms. There are a number of (possibly related) other issues that may require similar testing.

Pexpect is a nice tool to automate testing over ptys, but it is Python 2. I had to run the test on Python 3.3 through the installed Python 2 interpter. My thought: the smallest useful subset of Pexpect can be ported to Py3 and maintained within Python. Or alternatively an equally useful minimal implementation of the same features. Note that most of Pexpect is already tested.

I've used bash to test this one issue because it was ready and I could rely on bash jobs handling. I don't know how good is to expect bash to be on the system or whether any sh-like shell is compatible.

There is a WinPexpect which supposedly does the same thing on Windows in a native way. I couldn't get the time to try it out, but it includes a modified version of Pexpect and claims Py3 compatibility.

Also, I don't really understand sdaoden ascii art messages.

Let me know if someone wants to work on this with me. :)
History
Date User Action Args
2011-03-29 11:17:35davide.rizzosetrecipients: + davide.rizzo, mwh, akuchling, vstinner, ezio.melotti, jesstess, neologix, sdaoden
2011-03-29 11:17:35davide.rizzosetmessageid: <1301397455.75.0.893044560763.issue11650@psf.upfronthosting.co.za>
2011-03-29 11:17:35davide.rizzolinkissue11650 messages
2011-03-29 11:17:34davide.rizzocreate