From df8cb239682e3242f9cc1ba548d5f60dd0e411ca Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Tue, 5 Dec 2023 08:05:27 +0100
Subject: [PATCH] FIX: Wrong syntax in tests.

---
 tests/test_error_stuff.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/test_error_stuff.py b/tests/test_error_stuff.py
index 8da1324..7dd6d08 100644
--- a/tests/test_error_stuff.py
+++ b/tests/test_error_stuff.py
@@ -353,14 +353,14 @@ def test_URI_too_long():
     uri_long = 819
     header_long = 815
 
-    with pytest.raises(db.TransactionError) as err:
+    with pytest.raises(db.TransactionError) as excinfo:
         db.execute_query("0123456789" * short)
-    assert "Parsing" in err.msg
+    assert "Parsing" in excinfo.value.msg
 
-    with pytest.raises(db.HTTPURITooLongError) as err:
+    with pytest.raises(db.HTTPURITooLongError) as excinfo:
         db.execute_query("0123456789" * uri_long)
-    assert "414" in err.msg
+    assert "414" in excinfo.value.msg
 
-    with pytest.raises(db.HTTPURITooLongError) as err:
+    with pytest.raises(db.HTTPURITooLongError) as excinfo:
         db.execute_query("0123456789" * header_long)
-    assert "431" in err.msg
+    assert "431" in excinfo.value.msg
-- 
GitLab