From: Daniele Varrazzo Date: Sat, 13 Nov 2021 17:01:28 +0000 (+0100) Subject: Silence test warnings on Python 3.6 X-Git-Tag: 3.0.4~16^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c5fca017e4a1b2ef3ee9365a07cb0c874b9f481;p=thirdparty%2Fpsycopg.git Silence test warnings on Python 3.6 --- 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 # }}}