mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user