]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Make the nametuple_row() test independent from other tests
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 24 Feb 2021 18:19:16 +0000 (19:19 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 24 Feb 2021 18:19:16 +0000 (19:19 +0100)
tests/test_rows.py

index 06168e69834a66fea5c9938b62c373ddffa3e3ef..d2f9d97d7b9333b53679d94afbfd0594bacc036d 100644 (file)
@@ -14,6 +14,7 @@ def test_dict_row(conn):
 
 
 def test_namedtuple_row(conn):
+    rows._make_nt.cache_clear()
     cur = conn.cursor(row_factory=rows.namedtuple_row)
     cur.execute("select 'bob' as name, 3 as id")
     (person1,) = cur.fetchall()