Commit 443b84de authored by Nicolas Delaby's avatar Nicolas Delaby

Wrap test arround try finally to restore SyncCode.MAX_LINES value

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35838 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f54b95eb
......@@ -1341,6 +1341,7 @@ class TestERP5SyncML(TestERP5SyncMLMixin, ERP5TypeTestCase):
ZopeTestCase._print('\nTest Partial Data ')
LOG('Testing... ',0,'test_28_PartialData')
previous_max_lines = SyncCode.MAX_LINES
try:
SyncCode.MAX_LINES = 10
self.populatePersonServerWithSubObject(quiet=1,run=1)
self.synchronize(self.sub_id1)
......@@ -1362,6 +1363,7 @@ class TestERP5SyncML(TestERP5SyncMLMixin, ERP5TypeTestCase):
self.assertEquals(sub_sub_person2.getDescription(),self.description2)
self.assertEquals(sub_sub_person2.getFirstName(),self.first_name2)
self.assertEquals(sub_sub_person2.getLastName(),self.last_name2)
finally:
SyncCode.MAX_LINES = previous_max_lines
def test_29_BrokenMessage(self, quiet=0, run=run_all_test):
......
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