6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00

Added/Updated tests\bugs\gh_7730_test.py: Added 'SQLSTATE' in substitutions: runtime error must not be suppressed. Added 'combine_output = True' in order to see SQLSTATE if any error occurs.

This commit is contained in:
pavel-zotov 2023-12-14 19:52:15 +03:00
parent 812a70c7a5
commit 0e826dbced

View File

@ -9,6 +9,10 @@ NOTES:
[25.08.2023] pzotov
Confirmed problem on 5.0.0.1169, 4.0.4.2982
Checked on 5.0.0.1177, 4.0.4.2982 (intermediate snapshots).
[14.12.2023] pzotov
Added 'SQLSTATE' in substitutions: runtime error must not be filtered out by '?!(...)' pattern
("negative lookahead assertion", see https://docs.python.org/3/library/re.html#regular-expression-syntax).
Added 'combine_output = True' in order to see SQLSTATE if any error occurs.
"""
import locale
@ -16,7 +20,7 @@ import pytest
from firebird.qa import *
db = db_factory()
act = python_act('db', substitutions=[('^((?!sqltype:).)*$',''),('[ \t]+',' ')])
act = python_act('db', substitutions = [ ('^((?!SQLSTATE|sqltype:).)*$',''),('[ \t]+',' ' ) ] )
CHK_TIMESTAMP = '2023-08-29 01:02:03.0123 +03:00'
test_sql = f"""