Skip to content

Commit 5a4e7a6

Browse files
authored
SNOW-535152 Updated regex to also include the old error code (#1298)
1 parent e57b217 commit 5a4e7a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integ/test_errors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def test_error_code(conn_cnx):
4040
e.value.sqlstate == syntax_sqlstate
4141
or e.value.sqlstate == syntax_sqlstate_old
4242
), "Syntax SQL state"
43-
e.match(rf"^{syntax_errno:06d} \({syntax_sqlstate}\): ")
43+
e.match(
44+
rf"^({syntax_errno:06d} \({syntax_sqlstate}\)|{syntax_errno_old:06d} \({syntax_sqlstate_old}\)): "
45+
)
4446

4547

4648
@pytest.mark.skipolddriver

0 commit comments

Comments
 (0)