We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e3ad7 commit 20e2810Copy full SHA for 20e2810
odoo/addons/base/tests/test_expression.py
@@ -1219,7 +1219,10 @@ def test_invalid(self):
1219
Country.search([('create_date', '>>', 'foo')])
1220
1221
# TODO make it "Invalid operator"" for consistency
1222
- with self.assertRaisesRegex(ValueError, r"^stray % in format '%'$"):
+ with self.assertRaisesRegex(
1223
+ ValueError,
1224
+ r"^(time data 'foo' does not match|stray % in) format '%'$",
1225
+ ):
1226
Country.search([]).filtered_domain([('create_date', '>>', 'foo')])
1227
1228
with self.assertRaisesRegex(ValueError, r"Invalid isoformat string"):
0 commit comments