Commit ff230882 authored by Tatuya Kamada's avatar Tatuya Kamada

erp5_wendelin_inventory: Add comment for the workaround.

Also use find_load_module, instead of try/except.
parent 4fd05d76
...@@ -119,11 +119,12 @@ class PandasInventoryTest(ERP5TypeTestCase): ...@@ -119,11 +119,12 @@ class PandasInventoryTest(ERP5TypeTestCase):
def test_01_fillBigArrayTest(self): def test_01_fillBigArrayTest(self):
resource_uid = self.sale_order['1'].getResourceUid() resource_uid = self.sale_order['1'].getResourceUid()
data = self.portal.Base_zGetStockByResource(resource_uid=resource_uid) data = self.portal.Base_zGetStockByResource(resource_uid=resource_uid)
try: # next two lines are a workaround for the problem that the first time ZODB
self.portal.Base_convertResultsToBigArray( # component loding fails inside a ZODB component test with the pkg_resources
data, reference='dummy') # of setuptools-19.6.2
except: import erp5.component.extension
pass _ = erp5.component.extension.find_load_module('PandasInventory')
self.portal.Base_convertResultsToBigArray( self.portal.Base_convertResultsToBigArray(
data, data,
reference='TestingFillBigArray' reference='TestingFillBigArray'
......
...@@ -45,9 +45,7 @@ ...@@ -45,9 +45,7 @@
<item> <item>
<key> <string>text_content_warning_message</string> </key> <key> <string>text_content_warning_message</string> </key>
<value> <value>
<tuple> <tuple/>
<string>W:125, 4: No exception type(s) specified (bare-except)</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
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