From: Denis Laxalde Date: Thu, 28 Oct 2021 08:42:49 +0000 (+0200) Subject: Rename a variable in test_array.py::test_all_chars() X-Git-Tag: 3.0.2~6^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4914ac9fa6c2a24cc56863a2734c06ce9e3808e1;p=thirdparty%2Fpsycopg.git Rename a variable in test_array.py::test_all_chars() To make mypy happy. --- diff --git a/tests/types/test_array.py b/tests/types/test_array.py index 54207d0ed..38ec59ed8 100644 --- a/tests/types/test_array.py +++ b/tests/types/test_array.py @@ -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 = [