diff --git a/test/integ/test_errors.py b/test/integ/test_errors.py index 4cda5c8d3..6c5d0a9ef 100644 --- a/test/integ/test_errors.py +++ b/test/integ/test_errors.py @@ -40,7 +40,9 @@ def test_error_code(conn_cnx): e.value.sqlstate == syntax_sqlstate or e.value.sqlstate == syntax_sqlstate_old ), "Syntax SQL state" - e.match(rf"^{syntax_errno:06d} \({syntax_sqlstate}\): ") + e.match( + rf"^({syntax_errno:06d}|{syntax_errno_old:06d}) \(({syntax_sqlstate}|{syntax_sqlstate_old})\): " + ) @pytest.mark.skipolddriver