From: Daniele Varrazzo Date: Wed, 2 Dec 2020 04:01:48 +0000 (+0000) Subject: Make sure Notify is hashable X-Git-Tag: 3.0.dev0~288 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af1b3372b0107a0ba21b44c997d783b4b6e2a782;p=thirdparty%2Fpsycopg.git Make sure Notify is hashable --- diff --git a/tests/test_connection.py b/tests/test_connection.py index 91f84a411..867b3ce34 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -423,6 +423,7 @@ def test_notify_handlers(conn): assert n.channel == "foo" assert n.payload == "n2" assert n.pid == conn.pgconn.backend_pid + assert hash(n) with pytest.raises(ValueError): conn.remove_notify_handler(cb1)