From 014e96a73c7d87fe14be62222d204d7dbf72e2bc Mon Sep 17 00:00:00 2001 From: Patryk Czajka Date: Fri, 19 Sep 2025 10:35:09 +0200 Subject: [PATCH] Adjust server error code check --- test/integ/test_dbapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integ/test_dbapi.py b/test/integ/test_dbapi.py index b75e30d0a5..b8d31a0175 100644 --- a/test/integ/test_dbapi.py +++ b/test/integ/test_dbapi.py @@ -857,7 +857,8 @@ def test_callproc_invalid(conn_cnx): # stored procedure does not exist with pytest.raises(errors.ProgrammingError) as pe: cur.callproc(name_sp) - assert pe.value.errno == 2140 + # this value might differ between Snowflake environments + assert pe.value.errno in [2140, 2139] cur.execute( f"""