From 8c5fca017e4a1b2ef3ee9365a07cb0c874b9f481 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 13 Nov 2021 18:01:28 +0100 Subject: [PATCH] Silence test warnings on Python 3.6 --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c48206d50..0df80e206 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,17 +53,21 @@ jobs: - name: Run tests (Python implementation) if: ${{ matrix.impl == 'python' }} + # The zoneinfo warning ignore is only required on Python 3.6 run: > tox -c psycopg -e ${{ matrix.python }} -- --color yes -W error + -W ignore::DeprecationWarning:backports.zoneinfo._common - name: Run tests (C implementation) if: ${{ matrix.impl == 'c' }} # skip tests failing on importing psycopg_c.pq on subprocess # they only fail on Travis, work ok locally under tox too. + # The zoneinfo warning ignore is only required on Python 3.6 run: > tox -c psycopg_c -e ${{ matrix.python }} -- --color yes -W error -m 'not subprocess' + -W ignore::DeprecationWarning:backports.zoneinfo._common - name: Run DNS-related tests if: ${{ matrix.impl == 'dns' }} @@ -142,15 +146,18 @@ jobs: - name: Run tests (Python implementation) if: ${{ matrix.impl == 'python' }} + # The zoneinfo warning ignore is only required on Python 3.6 run: > tox -c psycopg -e ${{ matrix.python }} -- --color yes -W error + -W ignore::DeprecationWarning:backports.zoneinfo._common - name: Run tests (C implementation) if: ${{ matrix.impl == 'c' }} run: > tox -c psycopg_c -e ${{ matrix.python }} -- --color yes -W error + -W ignore::DeprecationWarning:backports.zoneinfo._common # }}} -- 2.47.2