Skip to content

Apply lib2to3.fixes.fix_asserts

Jérome Perrin requested to merge fix/assert_2to3 into master

Ran https://github.com/python/cpython/blob/3.7/Lib/lib2to3/fixes/fix_asserts.py after adding the missing methods (assertRegex and assertRaisesRegex) on ERP5TypeTestCase.

Also ran a custom fixer rewriting

self.assertTrue(a in b)

into

self.assertIn(a, b)
Edited by Jérome Perrin

Merge request reports