From c187b276ad60e06be260899889628b7979f267e4 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 9 Feb 2011 17:02:10 -0500 Subject: Fix test failures caused by the performance patch. It isn't safe to assume there is an environment or mode in any given object. Only skip the extra work if the object explicitly has production in it. --- tests/test_ipalib/test_config.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/test_ipalib/test_config.py b/tests/test_ipalib/test_config.py index af4aeb6f..97d7548f 100644 --- a/tests/test_ipalib/test_config.py +++ b/tests/test_ipalib/test_config.py @@ -568,6 +568,8 @@ class test_Env(ClassChecker): for (key, value) in defaults.items(): if value is object: continue + if key == 'mode': + continue assert o[key] == value, '%r is %r; should be %r' % (key, o[key], value) def test_finalize(self): -- cgit