summaryrefslogtreecommitdiff
path: root/pexpect/tests/swapcase_echo.py
blob: 565254eb0ed2a889ca28e2ffa3daad49dc58d40c (plain)
1
2
3
4
5
6
7
#!/usr/bin/env python
import sys, time
while True:
    x = raw_input ()
    time.sleep(1) # without this delay the test would fail about 75% of the time. Why?
    print x.swapcase()
    sys.stdout.flush()