- {impl: c, python: 3.7, postgres: 12}
- {impl: c, python: 3.8, postgres: 11}
- {impl: c, python: 3.9, postgres: 10}
+ - {impl: dns, python: 3.9, postgres: 13}
env:
PSYCOPG_IMPL: ${{ matrix.impl }}
# they only fail on Travis, work ok locally under tox too.
PYTEST_ADDOPTS: "-m 'not subprocess'"
+ - name: Run DNS-related tests
+ run: tox -c psycopg -e dns -- --color yes -m dns
+ if: ${{ matrix.impl == 'dns' }}
+ env:
+ PSYCOPG_IMPL: python
+
services:
postgresql:
image: postgres:${{ matrix.postgres }}
"timing: the test is timing based and can fail on cheese hardware",
)
+ config.addinivalue_line(
+ "markers",
+ "dns: the test requires dnspython to run",
+ )
+
def pytest_addoption(parser):
parser.addoption(
from .test_dns import import_dnspython
+pytestmark = [pytest.mark.dns]
+
samples_ok = [
("", "", None),
("host=_pg._tcp.foo.com", "host=db1.example.com port=5432", None),