Nominatim/test
Sarah Hoffmann a1f0fc1a10 improve deadlock detection for various versions of psycopg2
Psycopg2 has changed the kind of exception that is emitted on
deadlocks between versions 2.7 and 2.8. The code was already
trying to catch both kind of errors but because the
psycopg2.errors package is unknown in 2.7 and below, the
code would throw an exception on anything but a deadlock error.

This commit wraps the deadlock handling into a context manager
to avoid code duplication and uses module imports to detect if
the new error codes are available.

Also sets the required psycopg2 version to 2.7 or bigger as
versions below are difficult to test.
2021-02-25 18:11:16 +01:00
..
bdd bdd tests: directly call python code for setup-website 2021-02-19 18:20:55 +01:00
php Merge pull request #2181 from lonvia/port-more-tool-functions-to-python 2021-02-22 16:11:21 +01:00
python improve deadlock detection for various versions of psycopg2 2021-02-25 18:11:16 +01:00
scenes tests: add new admin scene 2017-08-20 09:29:56 +02:00
testdb bdd: add new API test data 2021-01-09 17:01:33 +01:00
Makefile restructure developer's manual 2020-09-17 09:54:46 +02:00