We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1831bcc commit dee38d3Copy full SHA for dee38d3
tests/test_tasks_thread.py
@@ -184,18 +184,10 @@ def task_func():
184
assert task_obj.terminate() is False
185
186
187
-def test_task_log_without_thread():
188
-
189
- task_log_handler = thread.ThreadLogHandler()
190
191
- # Should always return True if not attached to a thread
192
- assert task_log_handler.check_thread(record=None)
193
194
195
def test_task_log_with_incorrect_thread():
196
197
task_obj = thread.ActionThread(None)
198
- task_log_handler = thread.ThreadLogHandler(thread=task_obj)
+ task_log_handler = thread.ThreadLogHandler(task_obj, task_obj._log)
199
200
# Should always return False if called from outside the log handlers thread
201
assert task_log_handler.thread == task_obj
0 commit comments