From ad876585a5efa27292abf5455ec29df10ab614d6 Mon Sep 17 00:00:00 2001 From: zotov Date: Sat, 30 Jul 2022 19:20:12 +0300 Subject: [PATCH] Added/Updated bugs\gh_6785_test.py. Checked again on FB 4.x, 5.x. Problem can occur when FB log contains log of binary data (garbage) --- tests/bugs/gh_6785_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/bugs/gh_6785_test.py b/tests/bugs/gh_6785_test.py index 3c4afefb..c4f765af 100644 --- a/tests/bugs/gh_6785_test.py +++ b/tests/bugs/gh_6785_test.py @@ -109,8 +109,16 @@ def test_1(act: Action, tmp_fbk: Path, tmp_fdb: Path, tmp_log: Path, capsys): with act.connect_server() as srv: fblog_1 = act.get_firebird_log() + #with act.connect_server(encoding=locale.getpreferredencoding()) as srv: + # srv.info.get_log() + # fblog_1 = srv.readlines() + srv.database.repair(database = str(tmp_fdb), flags=SrvRepairFlag.CORRUPTION_CHECK) + fblog_2 = act.get_firebird_log() + #with act.connect_server(encoding=locale.getpreferredencoding()) as srv: + # srv.info.get_log() + # fblog_2 = srv.readlines() p_diff = re.compile('Validation finished: \\d+ errors, \\d+ warnings, \\d+ fixed') validation_result = ''