]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Rename a variable in test_composite.py::test_register_scope()
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:53:40 +0000 (09:53 +0100)
To make mypy happy.

tests/types/test_composite.py

index 119dfb978efe80d10e3aef661c4e9a18acd1021c..06a27052b45bfd8906e826624461b712ce2b9954 100644 (file)
@@ -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)