diff --git a/product/ERP5/tests/testGeographicalAddress.py b/product/ERP5/tests/testGeographicalAddress.py index 266b607f9e4ec9a31e6e1edab229dee3e9179d88..254c2df8b1f13b7555904239fc531361103a986c 100644 --- a/product/ERP5/tests/testGeographicalAddress.py +++ b/product/ERP5/tests/testGeographicalAddress.py @@ -170,6 +170,9 @@ return '%s\\n%s %s' % \\ (context.getStreetAddress(), context.getZipCode(), context.getCity()) """) + # Flush the cache because _getTypeBasedMethod caches the result, + # so that script will not be used. + self.getPortal().portal_caches.clearCache(cache_factory_list=('erp5_content_long',)) def stepCheckAddressAsTextScript(self, sequence=None, sequence_list=None, **kw):