diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2020-02-18 04:53:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-18 04:53:50 +0100 |
| commit | ff6e03deb950e965c36df12cfae2bafbfa2b47f3 (patch) | |
| tree | 5cd86b8ae3618623770d8e56011a1244795ee7ab | |
| parent | fd6c59d0b4b530c711a3e34702b166f285e33629 (diff) | |
| parent | 3265f2755d16c0a3dfc9f1feee39722ddc11ee80 (diff) | |
| download | python-decorator-git-ff6e03deb950e965c36df12cfae2bafbfa2b47f3.tar.gz | |
Merge pull request #79 from Infinisil/fix-warn-slow-test
Don't use strictly larger for warn_slow test
| -rw-r--r-- | src/tests/documentation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/documentation.py b/src/tests/documentation.py index 2256fea..9dd843a 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -1869,7 +1869,7 @@ def warn_slow(func, duration=0, *args, **kwargs): t0 = time.time() res = func(*args, **kwargs) dt = time.time() - t0 - if dt > duration: + if dt >= duration: print('%s is slow' % func.__name__) return res |
