From bf0991cf79bc50d7cc4b6e3be362bed826403f9d Mon Sep 17 00:00:00 2001 From: pavel-zotov Date: Tue, 12 Dec 2023 20:20:06 +0300 Subject: [PATCH] Added/Updated tests\bugs\core_4205_test.py: Added 'combine_output = True' in order to see SQLSTATE if any error occurs. --- tests/bugs/core_4205_test.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/bugs/core_4205_test.py b/tests/bugs/core_4205_test.py index d85ef2cf..2cd39ecb 100644 --- a/tests/bugs/core_4205_test.py +++ b/tests/bugs/core_4205_test.py @@ -21,7 +21,7 @@ init_script = """ db = db_factory(sql_dialect=3, init=init_script) -act = python_act('db', substitutions=[('^((?!CREATE GENERATOR).)*$', '')]) +act = python_act('db', substitutions=[('^((?!(SQLSTATE|CREATE GENERATOR)).)*$', '')]) expected_stdout = """ CREATE GENERATOR TMP_GEN_42051 START WITH 9223372036854775807 INCREMENT -2147483647; @@ -33,7 +33,5 @@ expected_stdout = """ @pytest.mark.version('>=3.0') def test_1(act: Action): act.expected_stdout = expected_stdout - act.isql(switches=['-x']) + act.isql(switches=['-x'], combine_output = True) assert act.clean_stdout == act.clean_expected_stdout - -