Adds timeout and reincarnation test

Also found a bug because of this.
This commit is contained in:
Ilan Steemers
2015-07-02 12:10:18 +02:00
parent a9a9d8ec34
commit 5399865f4e
3 changed files with 32 additions and 6 deletions
+8
View File
@@ -1,4 +1,7 @@
# simple countdown, returns nothing
from time import sleep
def countdown(n):
while n > 0:
n -= 1
@@ -23,6 +26,11 @@ def word_multiply(x, word=''):
return len(word) * x
def count_forever():
while True:
sleep(0.5)
def get_task_name(task):
return task.name