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 b333083 commit ad274adCopy full SHA for ad274ad
odoo/addons/base/tests/test_expression.py
@@ -1228,7 +1228,10 @@ def test_invalid(self):
1228
Country.search([('create_date', '>>', 'foo')])
1229
1230
# TODO make it "Invalid operator"" for consistency
1231
- with self.assertRaisesRegex(ValueError, r"^stray % in format '%'$"):
+ with self.assertRaisesRegex(
1232
+ ValueError,
1233
+ r"^(time data 'foo' does not match|stray % in) format '%'$",
1234
+ ):
1235
Country.search([]).filtered_domain([('create_date', '>>', 'foo')])
1236
1237
with self.assertRaisesRegex(ValueError, r"Invalid isoformat string"):
0 commit comments