summaryrefslogtreecommitdiff
path: root/tests/interact_unicode.py
blob: 873bb7137571eef830a1e592f14575ef6f3b84f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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

import pexpect
import sys

def main():
    p = pexpect.spawnu(sys.executable + ' echo_w_prompt.py')
    p.interact()

if __name__ == '__main__':
    main()