From: Daniele Varrazzo Date: Sat, 13 Nov 2021 15:02:46 +0000 (+0100) Subject: Enable error on str-bytes comparison in pytest X-Git-Tag: 3.0.4~16^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=298033bd3d86519808fa8143a0fbdf4348cf4a4b;p=thirdparty%2Fpsycopg.git Enable error on str-bytes comparison in pytest See #147 --- diff --git a/psycopg/tox.ini b/psycopg/tox.ini index ca264d2a2..3ffe8c36b 100644 --- a/psycopg/tox.ini +++ b/psycopg/tox.ini @@ -5,7 +5,7 @@ isolated_build = True [testenv] changedir = .. commands = - pytest {posargs} + python -bb -m pytest {posargs} passenv = PG* PSYCOPG_TEST_DSN PYTEST_ADDOPTS PSYCOPG_IMPL extras = test deps = @@ -14,7 +14,7 @@ deps = [testenv:dns] changedir = .. commands = - pytest {posargs} + python -bb -m pytest {posargs} passenv = PG* PSYCOPG_TEST_DSN PYTEST_ADDOPTS PSYCOPG_IMPL extras = test deps = @@ -23,7 +23,7 @@ deps = [testenv:postgis] changedir = .. commands = - pytest {posargs} + python -bb -m pytest {posargs} passenv = PG* PSYCOPG_TEST_DSN PYTEST_ADDOPTS PSYCOPG_IMPL extras = test deps = diff --git a/psycopg_c/tox.ini b/psycopg_c/tox.ini index 72ecce734..a1eb69822 100644 --- a/psycopg_c/tox.ini +++ b/psycopg_c/tox.ini @@ -5,7 +5,7 @@ isolated_build = True [testenv] changedir = .. commands = - pytest {posargs} + python -bb -m pytest {posargs} passenv = PG* PSYCOPG_TEST_DSN PYTEST_ADDOPTS PSYCOPG_IMPL deps = -e {toxinidir}/../psycopg[test]