Skip to content

Commit b6888a6

Browse files
committed
fixup! [IMP] snippets: move all work from parent to mp workers
1 parent a697852 commit b6888a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/base/tests/test_util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,7 @@ def not_doing_anything_converter(el):
14371437

14381438
class TestHTMLFormat(UnitTestCase):
14391439
def testsnip(self):
1440+
# util.convert_html_columns() commits the cursor, use a new transaction to not mess up the test_cr
14401441
with self.registry.cursor() as cr:
14411442
env = api.Environment(cr, SUPERUSER_ID, {})
14421443
view_arch = """
@@ -1465,6 +1466,7 @@ def testsnip(self):
14651466
)
14661467
util.invalidate(view_id)
14671468
res = env["ir.ui.view"].search_read([("id", "=", view_id.id)], ["arch_db"])
1469+
# clean up committed data
14681470
view_id.unlink()
14691471
self.assertEqual(len(res), 1)
14701472
oneline = lambda s: re.sub(r"\s+", " ", s.strip())

0 commit comments

Comments
 (0)