From c41d9b424ce167d7898b7e279c283a0fd38db258 Mon Sep 17 00:00:00 2001 From: melissaml Date: Wed, 19 Oct 2016 11:28:40 +0800 Subject: [PATCH] TrivialFix: Remove default=None when set value in Config By default oslo.cfg sets the default values as None [1], There is no need to explicitly do this. [1] https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L829 Change-Id: I84f2c604b0ac69713d0c1f1e4dd1bd9cb5a10b59 --- oslo_cache/tests/test_cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oslo_cache/tests/test_cache.py b/oslo_cache/tests/test_cache.py index 1cbea46..2294e8e 100644 --- a/oslo_cache/tests/test_cache.py +++ b/oslo_cache/tests/test_cache.py @@ -82,9 +82,9 @@ class CacheRegionTest(BaseTestCase): def _add_dummy_config_group(self): self.config_fixture.register_opt( - cfg.IntOpt('cache_time', default=None), group=TEST_GROUP) + cfg.IntOpt('cache_time'), group=TEST_GROUP) self.config_fixture.register_opt( - cfg.IntOpt('cache_time', default=None), group=TEST_GROUP2) + cfg.IntOpt('cache_time'), group=TEST_GROUP2) def _get_cacheable_function(self): memoize = cache.get_memoization_decorator(