summaryrefslogtreecommitdiff
path: root/tests/interact_unicode.py
blob: f4c1f55002aed7e204752d515f4a1f230ca2946a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
'''
Just like interact.py, but using spawnu instead of spawn
'''
try:
    # This allows coverage to measure code run in this process
    import coverage
    coverage.process_startup()
except ImportError:
    pass

from utils import no_coverage_env
import pexpect
import sys


def main():
    p = pexpect.spawnu(sys.executable + ' echo_w_prompt.py',
                       env=no_coverage_env())
    p.interact()
    print("Escaped interact")

if __name__ == '__main__':
    main()