Blame view

demo/questions/correct-timeout.py 237 Bytes
5a562dde   Miguel Barão   - new demo test.
1
2
3
4
5
6
7
#!/usr/bin/env python3

import sys
import time

s = sys.stdin.read()

f6b63c71   Miguel Barão   changes to demo s...
8
# sleep a lot of time to generate timeout during correction
5a562dde   Miguel Barão   - new demo test.
9
10
time.sleep(100)

f6b63c71   Miguel Barão   changes to demo s...
11
# probably this result will not be seen because the script will be interrupted
5a562dde   Miguel Barão   - new demo test.
12
print(0.5)