From e11f563123581f898df1067f3457b46048c1152f Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 7 Jan 2023 14:24:17 +0000 Subject: [PATCH] docstrings --- tests/test_concurrency.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 88a3ccf4b..c73418f2f 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -14,6 +14,8 @@ def test_call_from_thread_app_not_running(): def test_call_from_thread(): + """Test the call_from_thread method.""" + class BackgroundThread(Thread): """A background thread which will modify app in some way.""" @@ -41,6 +43,7 @@ def test_call_from_thread(): try: self.call_from_thread(print) except RuntimeError as error: + # Calling this from the same thread as the app is an error self._runtime_error = error BackgroundThread(self).start()