Commit 8b260e5b authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Unit Tests: Fix "NameError: global name 'full_module_name' is not defined".

parent 78356c43
...@@ -1358,8 +1358,8 @@ class _TestZodbComponent(SecurityTestCase): ...@@ -1358,8 +1358,8 @@ class _TestZodbComponent(SecurityTestCase):
except ImportError: except ImportError:
pass pass
else: else:
self.fail("Component '%s' should not have been generated" % \ self.fail("Component '%s' should not have been generated" %
full_module_name) self._getComponentFullModuleName(module_name))
self._component_tool.reset(force=True, self._component_tool.reset(force=True,
reset_portal_type_at_transaction_boundary=False) reset_portal_type_at_transaction_boundary=False)
...@@ -1376,8 +1376,8 @@ class _TestZodbComponent(SecurityTestCase): ...@@ -1376,8 +1376,8 @@ class _TestZodbComponent(SecurityTestCase):
try: try:
self._importModule(module_name) self._importModule(module_name)
except ImportError: except ImportError:
self.fail("Component '%s' should have been generated" % \ self.fail("Component '%s' should have been generated" %
full_module_name) self._getComponentFullModuleName(module_name))
if expected_default_version is not None: if expected_default_version is not None:
top_module_name = self._getComponentModuleName() top_module_name = self._getComponentModuleName()
......
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