From 6e869794efac10dd0eb1f16db1ec0235f9da2403 Mon Sep 17 00:00:00 2001 From: Tim Savannah Date: Mon, 13 May 2019 11:47:07 -0400 Subject: [PATCH] Add expected value before print on old testit.py, and docstring to note where other tests are located. --- testit.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testit.py b/testit.py index bbfaf8a..0ff5ea2 100755 --- a/testit.py +++ b/testit.py @@ -1,4 +1,9 @@ #!/usr/bin/env python +''' + testit.py - Example code for ad-hoc function timeouts. + + Newer tests for all features found in "tests" directory. +''' from func_timeout import func_timeout, FunctionTimedOut import time @@ -23,6 +28,7 @@ if __name__ == '__main__': myException = e pass + print ( "\nRetrying with longer timeout, should get 16+17=33:" ) if myException is not None: print ( "\nGot: %s\n" %( str(myException.retry(2.5)), ) ) else: