-
-
Save sdwfrost/4e29b695340aedec13de82aba0a85fb6 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