summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-02-09 17:02:10 -0500
committerRob Crittenden <rcritten@redhat.com>2011-02-10 13:52:29 -0500
commitc187b276ad60e06be260899889628b7979f267e4 (patch)
tree816fea7649069241d1a65fc194afa9e42bae7a7e /tests/test_ipalib
parentf34c0ab91673ad12edd937e6f3b0e97811f06d6e (diff)
downloadfreeipa-c187b276ad60e06be260899889628b7979f267e4.tar.gz
freeipa-c187b276ad60e06be260899889628b7979f267e4.tar.xz
freeipa-c187b276ad60e06be260899889628b7979f267e4.zip
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.
Diffstat (limited to 'tests/test_ipalib')
-rw-r--r--tests/test_ipalib/test_config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_ipalib/test_config.py b/tests/test_ipalib/test_config.py
index af4aeb6fb..97d7548fe 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):