From: Daniele Varrazzo Date: Fri, 13 May 2022 15:02:15 +0000 (+0200) Subject: test: fix formats testing in number wrapper array test X-Git-Tag: 3.1~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64bf48cfb56a98485467351a9bb7b11128c643d9;p=thirdparty%2Fpsycopg.git test: fix formats testing in number wrapper array test --- diff --git a/tests/types/test_array.py b/tests/types/test_array.py index 1a747ef50..6fe7a5ffe 100644 --- a/tests/types/test_array.py +++ b/tests/types/test_array.py @@ -176,7 +176,7 @@ def test_list_number_wrapper(conn, wrapper, fmt_in, fmt_out): obj = [wrapper(1), wrapper(0), wrapper(-1), None] cur = conn.cursor(binary=fmt_out) - got = cur.execute("select %s", [obj]).fetchone()[0] + got = cur.execute(f"select %{fmt_in}", [obj]).fetchone()[0] assert got == obj for i in got: if i is not None: