From 8cefb6c4d657ec738119397852d6d4f5524f410b Mon Sep 17 00:00:00 2001 From: Van Hung Pham Date: Mon, 19 Jun 2017 15:47:43 +0700 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: I642a341e7532e4b0fdd0719c5cac6933842a4fa4 Related--Bug: #1517839 --- distil/tests/unit/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distil/tests/unit/base.py b/distil/tests/unit/base.py index 240321a..6602a1f 100644 --- a/distil/tests/unit/base.py +++ b/distil/tests/unit/base.py @@ -96,7 +96,7 @@ class DistilTestCase(base.BaseTestCase): test by the tearDown() method. """ for k, v in kw.items(): - self.conf.set_override(k, v, group, enforce_type=True) + self.conf.set_override(k, v, group) def _my_dir(self): return os.path.abspath(os.path.dirname(__file__))