From 1c36c268deca9450938b37b4fceee63aac270edf Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Wed, 11 Apr 2018 13:10:12 -0700 Subject: [PATCH] tests/tools: add prefix "_" to CALLBACK_PRIORITY_SUPPORTED As it's private variable in the module, add "_" prefix to CALLBACK_PRIORITY_SUPPORTED to _CALLBACK_PRIORITY_SUPPORTED. This patch is follow up patch for https://review.openstack.org/#/c/560128/ Change-Id: I80aa34a000d1c1bd87cfff77af8fca56befe2542 --- neutron/tests/tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neutron/tests/tools.py b/neutron/tests/tools.py index 82b2d493032..c4a03376359 100644 --- a/neutron/tests/tools.py +++ b/neutron/tests/tools.py @@ -38,11 +38,11 @@ from neutron.services.logapi.common import constants as log_const # priority_group module was added for constants of priority. # test the existence of the module of priority_group to check if # callback priority is supported or not. -CALLBACK_PRIORITY_SUPPORTED = True +_CALLBACK_PRIORITY_SUPPORTED = True try: from neutron_lib.callbacks import priority_group # noqa except ImportError as e: - CALLBACK_PRIORITY_SUPPORTED = False + _CALLBACK_PRIORITY_SUPPORTED = False class WarningsFixture(fixtures.Fixture): @@ -150,7 +150,7 @@ def get_subscribe_args(*args): # NOTE(yamahata): from neutron-lib 1.9.1, callback priority was added. # old signature: (callback, resource, event) # new signature: (callback, resource, event, priority=PRIORITY_DEFAULT) - if len(args) == 3 and CALLBACK_PRIORITY_SUPPORTED: + if len(args) == 3 and _CALLBACK_PRIORITY_SUPPORTED: args = list(args) # don't modify original list args.append(priority_group.PRIORITY_DEFAULT) return args