]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Rename a variable in test_array.py::test_all_chars()
authorDenis Laxalde <denis.laxalde@dalibo.com>
Thu, 28 Oct 2021 08:42:49 +0000 (10:42 +0200)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Tue, 2 Nov 2021 08:52:19 +0000 (09:52 +0100)
To make mypy happy.

tests/types/test_array.py

index 54207d0ed66279146723fd04414ff289657272a7..38ec59ed8d947ef1218bc9186ae25a3c4b175cc8 100644 (file)
@@ -58,9 +58,9 @@ def test_all_chars(conn, fmt_in, fmt_out):
     cur.execute(f"select %{fmt_in}::text[]", (a,))
     assert cur.fetchone()[0] == a
 
-    a = "".join(a)
-    cur.execute(f"select %{fmt_in}::text[]", ([a],))
-    assert cur.fetchone()[0] == [a]
+    s = "".join(a)
+    cur.execute(f"select %{fmt_in}::text[]", ([s],))
+    assert cur.fetchone()[0] == [s]
 
 
 tests_int = [