From: Jolbas <39026960+Jolbas@users.noreply.github.com> Date: Sun, 25 Sep 2022 12:32:42 +0000 (+0200) Subject: test: check unusual column names and namedtuple X-Git-Tag: 3.1.3~7^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf89d34e1c11edd560b29b4614141da27fc27ca;p=thirdparty%2Fpsycopg.git test: check unusual column names and namedtuple --- diff --git a/tests/test_rows.py b/tests/test_rows.py index 62b15a764..600a7e678 100644 --- a/tests/test_rows.py +++ b/tests/test_rows.py @@ -56,6 +56,11 @@ def test_namedtuple_row(conn): assert r2.number == 1 assert not cur.nextset() assert type(r1) is not type(r2) + cur.execute('select 1 as üåäö, 1 as _, 1 as "123"') + (r3,) = cur.fetchall() + assert "üåäö" in r3._fields + assert "f_" in r3._fields + assert "f123" in r3._fields def test_class_row(conn):