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:
Rob Crittenden
2011-02-09 17:02:10 -05:00
parent f34c0ab916
commit c187b276ad
3 changed files with 21 additions and 8 deletions

View File

@@ -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):