From: Daniele Varrazzo Date: Wed, 24 Feb 2021 18:19:16 +0000 (+0100) Subject: Make the nametuple_row() test independent from other tests X-Git-Tag: 3.0.dev0~106^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a4acaa767f56ee32edc7edb066667d49671b1ac;p=thirdparty%2Fpsycopg.git Make the nametuple_row() test independent from other tests --- diff --git a/tests/test_rows.py b/tests/test_rows.py index 06168e698..d2f9d97d7 100644 --- a/tests/test_rows.py +++ b/tests/test_rows.py @@ -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()