From: Denis Laxalde Date: Thu, 28 Oct 2021 08:42:49 +0000 (+0200) Subject: Rename a variable in test_composite.py::test_register_scope() X-Git-Tag: 3.0.2~6^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24c7c61547b2ea82a9a1bf3ce78c287db8043f96;p=thirdparty%2Fpsycopg.git Rename a variable in test_composite.py::test_register_scope() To make mypy happy. --- diff --git a/tests/types/test_composite.py b/tests/types/test_composite.py index 119dfb978..06a27052b 100644 --- a/tests/types/test_composite.py +++ b/tests/types/test_composite.py @@ -269,8 +269,8 @@ def test_register_scope(conn, testcomp): for oid in (info.oid, info.array_oid): assert postgres.adapters._loaders[fmt].pop(oid) - for fmt in PyFormat: - assert postgres.adapters._dumpers[fmt].pop(info.python_type) + for f in PyFormat: + assert postgres.adapters._dumpers[f].pop(info.python_type) cur = conn.cursor() register_composite(info, cur)