]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Silence test warnings on Python 3.6
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 13 Nov 2021 17:01:28 +0000 (18:01 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 13 Nov 2021 18:35:32 +0000 (19:35 +0100)
.github/workflows/tests.yml

index c48206d50d6586ef0dcbeb90716a94f07fe67188..0df80e206f282b0992ab751eea4b92f20fd471e4 100644 (file)
@@ -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
 
 
   # }}}