summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2020-02-29 06:06:21 +0100
committerMichele Simionato <michele.simionato@gmail.com>2020-02-29 06:06:21 +0100
commite503d2818de7b519106e3389dbe8658d14a37006 (patch)
tree9ed7f683d5c7fb66747a38871f6226a8d487f27c
parentff6e03deb950e965c36df12cfae2bafbfa2b47f3 (diff)
downloadpython-decorator-git-e503d2818de7b519106e3389dbe8658d14a37006.tar.gz
Fixed "operation is slow" tests
-rw-r--r--src/tests/documentation.py4
1 files changed, 3 insertions, 1 deletions
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__':