From e503d2818de7b519106e3389dbe8658d14a37006 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Sat, 29 Feb 2020 06:06:21 +0100 Subject: Fixed "operation is slow" tests --- src/tests/documentation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/documentation.py b/src/tests/documentation.py index 9dd843a..46a932a 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -1333,7 +1333,7 @@ a (shallow) copy of the original function dictionary: LICENSE (2-clause BSD) --------------------------------------------- -Copyright (c) 2005-2019, Michele Simionato +Copyright (c) 2005-2020, Michele Simionato All rights reserved. Redistribution and use in source and binary forms, with or without @@ -1880,6 +1880,7 @@ def operation1(): >>> operation1() operation1 is slow """ + time.sleep(.1) @warn_slow # without parens @@ -1888,6 +1889,7 @@ def operation2(): >>> operation2() operation2 is slow """ + time.sleep(.1) if __name__ == '__main__': -- cgit v1.2.1