From 500f4f330fde8b6001a2f8d8921bd5b8acb79960 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Mon, 2 Apr 2018 22:45:34 +0900 Subject: _context.py: Adhere to policy on private symbols And adjust all surrounding sources for changed symbols. This is a part of issue #285 --- tests/plugins/pipeline.py | 2 +- tests/project/plugins.py | 2 +- tests/variables/variables.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/plugins/pipeline.py b/tests/plugins/pipeline.py index 805155731..012b48c28 100644 --- a/tests/plugins/pipeline.py +++ b/tests/plugins/pipeline.py @@ -21,7 +21,7 @@ def create_pipeline(tmpdir, basedir, target): def dummy_handler(message, context): pass - context._set_message_handler(dummy_handler) + context.set_message_handler(dummy_handler) return Pipeline(context, project, [target], []) diff --git a/tests/project/plugins.py b/tests/project/plugins.py index 8907c7eaf..432983dc5 100644 --- a/tests/project/plugins.py +++ b/tests/project/plugins.py @@ -19,7 +19,7 @@ def create_pipeline(tmpdir, basedir, target): def dummy_handler(message, context): pass - context._set_message_handler(dummy_handler) + context.set_message_handler(dummy_handler) return Pipeline(context, project, [target], []) diff --git a/tests/variables/variables.py b/tests/variables/variables.py index 944d19818..233ea5c1f 100644 --- a/tests/variables/variables.py +++ b/tests/variables/variables.py @@ -19,7 +19,7 @@ def create_pipeline(tmpdir, basedir, target): def dummy_handler(message, context): pass - context._set_message_handler(dummy_handler) + context.set_message_handler(dummy_handler) return Pipeline(context, project, [target], []) -- cgit v1.2.1