From 87dc783af3e744fb6dc411794f9efb627b9a7d1e Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 26 Sep 2023 18:54:10 +0200 Subject: [PATCH] chore(crdb): test 23.1 in CI --- .github/workflows/tests.yml | 2 +- tests/test_client_cursor.py | 2 +- tests/test_cursor.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e265b52dc..8950b181e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -237,7 +237,7 @@ jobs: fail-fast: false matrix: include: - - {impl: c, crdb: "latest-v22.1", python: "3.10", libpq: newest} + - {impl: c, crdb: "latest-v23.1", python: "3.10", libpq: newest} - {impl: python, crdb: "latest-v22.2", python: "3.11"} env: PSYCOPG_IMPL: ${{ matrix.impl }} diff --git a/tests/test_client_cursor.py b/tests/test_client_cursor.py index 512722a82..3d6ec4dbf 100644 --- a/tests/test_client_cursor.py +++ b/tests/test_client_cursor.py @@ -692,7 +692,7 @@ class TestColumn: assert c.name == "now" assert c.type_code == builtins["date"].oid assert c.display_size is None - if is_crdb(conn): + if is_crdb(conn) and conn.info.server_version < 230000: assert c.internal_size == 16 else: assert c.internal_size == 4 diff --git a/tests/test_cursor.py b/tests/test_cursor.py index ae1ec1c74..f48714715 100644 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -810,7 +810,7 @@ class TestColumn: assert c.name == "now" assert c.type_code == builtins["date"].oid assert c.display_size is None - if is_crdb(conn): + if is_crdb(conn) and conn.info.server_version < 230000: assert c.internal_size == 16 else: assert c.internal_size == 4 -- 2.47.2