From 64bf48cfb56a98485467351a9bb7b11128c643d9 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 13 May 2022 17:02:15 +0200 Subject: [PATCH] test: fix formats testing in number wrapper array test --- tests/types/test_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.2