]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test: allow to trace libpq to STDERR, rename option to --pq-trace
authorDenis Laxalde <denis.laxalde@dalibo.com>
Thu, 15 Sep 2022 10:24:43 +0000 (12:24 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 16 Sep 2022 22:44:07 +0000 (23:44 +0100)
commit8a44473e3f75c1bfdd26052b68b1ead49b2e4ebe
tree1c0270a2ad33c8c1edafa119410f5ec8e54546d7
parentd41d8fc6a09718babb570ec7a891ef047bd6121c
test: allow to trace libpq to STDERR, rename option to --pq-trace

By using STDERR, we get the trace directly in pytest output for failing
tests. Though this requires care when used in combination with
--capture=sys because this would make sys.stderr an in-memory file.

When STDERR is used, we don't insert the header since the test case
identifier will be interleaved already.
tests/fix_db.py