Skip to content

Commit e49f253

Browse files
committed
Added/Updated tests\bugs\gh_7976_test.py: Checked on 5.0.1.1324.
1 parent 674b360 commit e49f253

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/bugs/gh_7976_test.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#coding:utf-8
2+
3+
"""
4+
ID: issue-7976
5+
ISSUE: https://github.com/FirebirdSQL/firebird/issues/7976
6+
TITLE: False validation error for short unpacked records
7+
DESCRIPTION:
8+
NOTES:
9+
[25.01.2024] pzotov
10+
Confirmed bug on 5.0.1.1318, 6.0.0.223.
11+
Checked on 5.0.1.1324.
12+
"""
13+
14+
import pytest
15+
from pathlib import Path
16+
from firebird.qa import *
17+
18+
init_sql = """
19+
create table tmp1(a1 integer);
20+
insert into tmp1 values (1000);
21+
commit;
22+
"""
23+
db = db_factory(init = init_sql)
24+
25+
act = python_act('db')
26+
27+
@pytest.mark.version('>=5.0.1')
28+
def test_1(act: Action, capsys):
29+
30+
act.expected_stdout = ""
31+
act.gfix(switches=['-v', '-full', str(act.db.dsn)])
32+
assert act.clean_stdout == act.clean_expected_stdout

0 commit comments

Comments
 (0)