Skip to content

Commit 392bab1

Browse files
author
陈云亮
committed
test(pq): 增加对GaussDB二进制COPY输出的跳过标记
- 为test_copy_out_read测试添加@gaussdb_skip标记 - 解决GaussDB中二进制COPY签名可能不一致的问题 - 保持与OpenGauss跳过标记一致的测试行为 - 确保测试在GaussDB环境中不因二进制输出差异失败
1 parent c6656ba commit 392bab1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/pq/test_copy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def test_get_data_no_copy(pgconn):
149149

150150
@pytest.mark.parametrize("format", [pq.Format.TEXT, pq.Format.BINARY])
151151
@pytest.mark.opengauss_skip("Incompatible binary COPY output in OpenGauss")
152+
@pytest.mark.gaussdb_skip("binary copy signature may differ")
152153
def test_copy_out_read(pgconn, format):
153154
stmt = f"copy ({sample_values}) to stdout (format {format.name})"
154155
res = pgconn.exec_(stmt.encode("ascii"))

0 commit comments

Comments
 (0)