Skip to content

Commit dee38d3

Browse files
author
Joel Collins
committed
Fixed tests for ThreadLogHandler
1 parent 1831bcc commit dee38d3

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/test_tasks_thread.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,10 @@ def task_func():
184184
assert task_obj.terminate() is False
185185

186186

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-
195187
def test_task_log_with_incorrect_thread():
196188

197189
task_obj = thread.ActionThread(None)
198-
task_log_handler = thread.ThreadLogHandler(thread=task_obj)
190+
task_log_handler = thread.ThreadLogHandler(task_obj, task_obj._log)
199191

200192
# Should always return False if called from outside the log handlers thread
201193
assert task_log_handler.thread == task_obj

0 commit comments

Comments
 (0)