summaryrefslogtreecommitdiff
path: root/pexpect/tests/swapcase_echo.py
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect/tests/swapcase_echo.py')
-rwxr-xr-xpexpect/tests/swapcase_echo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pexpect/tests/swapcase_echo.py b/pexpect/tests/swapcase_echo.py
index 03ee922..565254e 100755
--- a/pexpect/tests/swapcase_echo.py
+++ b/pexpect/tests/swapcase_echo.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
-import sys
+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()