Commit 638f9fef authored by Martin Aspeli's avatar Martin Aspeli

Avoid possible errors on test tear-down in Products.Five.fiveconfigure's...

Avoid possible errors on test tear-down in Products.Five.fiveconfigure's cleanUp() function if Products.meta_types has not been set
parent 86fcf435
...@@ -11,7 +11,8 @@ Zope 2.12.2 (unreleased) ...@@ -11,7 +11,8 @@ Zope 2.12.2 (unreleased)
Bugs Fixed Bugs Fixed
++++++++++ ++++++++++
- Avoid possible errors on test tear-down in Products.Five.fiveconfigure's
cleanUp() function if Products.meta_types has not been set
Zope 2.12.1 (2009/11/02) Zope 2.12.1 (2009/11/02)
------------------------ ------------------------
......
...@@ -225,7 +225,7 @@ def cleanUp(): ...@@ -225,7 +225,7 @@ def cleanUp():
_register_monkies = [] _register_monkies = []
global _meta_type_regs global _meta_type_regs
Products.meta_types = tuple([ info for info in Products.meta_types Products.meta_types = tuple([ info for info in getattr(Products, 'meta_types', [])
if info['name'] not in _meta_type_regs ]) if info['name'] not in _meta_type_regs ])
_meta_type_regs = [] _meta_type_regs = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment