]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
doc(dev): add note about local testing master
authorDylan Young <dylanyoungmeijer@gmail.com>
Mon, 8 Jun 2026 00:33:31 +0000 (21:33 -0300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 26 Jun 2026 15:28:51 +0000 (17:28 +0200)
How to exclude the primary tests that are likely to fail when
running tests locally.

README.rst

index b35643e006f04fcb84c0c8f55330c0483bacdc90..21bcffc5f97f5a289218e8055f6d7f30d689152a 100644 (file)
@@ -88,6 +88,12 @@ Now hack away! You can run the tests using::
     export PSYCOPG_TEST_DSN="dbname=psycopg_test"
     pytest
 
+If some of the tests fail on your local host, it may be helpful to exclude the
+`proxy`, `subprocess`, and/or `timing` tests to get a clean test run, for
+example::
+
+     pytest  -m 'not proxy and not timing'
+
 The project includes some `pre-commit`__ hooks to check that the code is valid
 according to the project coding convention. Please make sure to install them
 by running::