]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_db_async_connection.py
do not hide errors when importing tokenizer
[nominatim.git] / test / python / test_db_async_connection.py
index b52f7053f4a8d601facfbf48a924ae564b7688e3..330b86f7cb46e4e324de82467d461523e0dd94b8 100644 (file)
@@ -56,13 +56,21 @@ def test_bad_query(conn):
         conn.wait()
 
 
+def test_bad_query_ignore(temp_db):
+    with closing(DBConnection('dbname=' + temp_db, ignore_sql_errors=True)) as conn:
+        conn.connect()
+
+        conn.perform('SELECT efasfjsea')
+
+        conn.wait()
+
+
 def exec_with_deadlock(cur, sql, detector):
     with DeadlockHandler(lambda *args: detector.append(1)):
         cur.execute(sql)
 
 
 def test_deadlock(simple_conns):
-    print(psycopg2.__version__)
     cur1, cur2 = simple_conns
 
     cur1.execute("""CREATE TABLE t1 (id INT PRIMARY KEY, t TEXT);