From 6e470484c9f128d853bfb3f1af71e27ac18cb624 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 7 Oct 2020 12:39:13 +0100 Subject: [PATCH] add missing docstrings --- tqdm/tests/tests_synchronisation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tqdm/tests/tests_synchronisation.py b/tqdm/tests/tests_synchronisation.py index c2a1caaf..f16d8133 100644 --- a/tqdm/tests/tests_synchronisation.py +++ b/tqdm/tests/tests_synchronisation.py @@ -41,6 +41,7 @@ def FakeEvent(): event = Event() # not a class in py2 so can't inherit def wait(timeout=None): + """uses Time.fake_sleep""" if timeout is not None: Time.fake_sleep(timeout) return event.is_set() @@ -50,8 +51,10 @@ def FakeEvent(): def patch_sleep(func): + """Temporarily makes TMonitor use Time.fake_sleep""" @wraps(func) def inner(*args, **kwargs): + """restores TMonitor on completion regardless of Exceptions""" TMonitor._test["time"] = Time.time TMonitor._test["Event"] = FakeEvent if tqdm.monitor: