]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/test_db_connection.py
introduce custom UsageError
[nominatim.git] / test / python / test_db_connection.py
index 5c484558b8016821b9f755330f109c794bc61b6e..ef1ae7416cc9d23a3d3c11433d5ea444c3c9262b 100644 (file)
@@ -28,5 +28,5 @@ def test_cursor_scalar(db, temp_db_cursor):
 
 def test_cursor_scalar_many_rows(db):
     with db.cursor() as cur:
-        with pytest.raises(ValueError):
+        with pytest.raises(RuntimeError):
             cur.scalar('SELECT * FROM pg_tables')