Created
February 10, 2015 17:42
-
-
Save ajtulloch/8413211619a5a8619ea1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import pexpect | |
import pexpect.replwrap | |
repl = pexpect.replwrap.REPLWrapper("lua", u"> ", None, u"> ") | |
output = repl.run_command("= 1 + 1", timeout=1).splitlines()[1:] | |
assert(int(output[0]) == 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment