From 5f06f161442ee6fadbc992548068f6558aafb8a2 Mon Sep 17 00:00:00 2001 From: carlosporta Date: Wed, 19 Oct 2022 09:20:09 -0300 Subject: [PATCH] fix using the default while removing a task --- rocketry/session.py | 2 +- rocketry/test/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rocketry/session.py b/rocketry/session.py index 01d72512..5efd3df6 100644 --- a/rocketry/session.py +++ b/rocketry/session.py @@ -397,7 +397,7 @@ def add_task(self, task: 'Task'): def remove_task(self, task: Union['Task', str]): if isinstance(task, str): task = self[task] - self.session.tasks.remove(task) + self.tasks.remove(task) def task_exists(self, task: 'Task'): warnings.warn(( diff --git a/rocketry/test/conftest.py b/rocketry/test/conftest.py index 08b28140..f69daf2f 100644 --- a/rocketry/test/conftest.py +++ b/rocketry/test/conftest.py @@ -80,7 +80,7 @@ def session(): "task_execution": "process", }, delete_existing_loggers=True) rocketry.session = session - session.set_as_default() + # session.set_as_default() task_logger = logging.getLogger(session.config.task_logger_basename) task_logger.handlers = [