diff --git a/product/ERP5Form/tests/testFields.py b/product/ERP5Form/tests/testFields.py index 1663d027d5e1fcdc20b09e157b2a053c5e134689..4efdf4b81e0c2c34938b471428f444b96677fa26 100644 --- a/product/ERP5Form/tests/testFields.py +++ b/product/ERP5Form/tests/testFields.py @@ -936,7 +936,7 @@ class TestFieldValueCache(ERP5TypeTestCase): def _getCacheSize(self, cache_id): count = 0 - for cache_key in field_value_cache.viewkeys(): + for cache_key in field_value_cache.iterkeys(): if cache_key[0] == cache_id: count += 1