From bb16b179e774eeac01eba3c4e52c223a854dd466 Mon Sep 17 00:00:00 2001 From: luqitao Date: Wed, 31 May 2017 23:22:57 -0400 Subject: [PATCH] Remove usage of parameter enforce_type Oslo.config deprecated parameter enforce_type and change its default value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0. Remove the usage of it to avoid DeprecationWarning: "Using the 'enforce_type' argument is deprecated in version '4.0' and will be removed in version '5.0': The argument enforce_type has changed its default value to True and then will be removed completely." Change-Id: Ic0d29ae6aa286dba9832756e214095e79bde427a Related-Bug: #1517839 --- mogan/tests/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mogan/tests/base.py b/mogan/tests/base.py index 421d1296..505a234f 100644 --- a/mogan/tests/base.py +++ b/mogan/tests/base.py @@ -81,7 +81,7 @@ class TestCase(base.BaseTestCase): """Override config options for a test.""" group = kw.pop('group', None) for k, v in kw.items(): - CONF.set_override(k, v, group, enforce_type=True) + CONF.set_override(k, v, group) def stub_out(self, old, new): """Replace a function for the duration of the test.