From: Daniele Varrazzo Date: Tue, 26 Sep 2023 16:54:10 +0000 (+0200) Subject: chore(crdb): test 23.1 in CI X-Git-Tag: 3.1.12~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87dc783af3e744fb6dc411794f9efb627b9a7d1e;p=thirdparty%2Fpsycopg.git chore(crdb): test 23.1 in CI --- 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