From 7e94ce1f14ae25eb6ff901e8c6822d858525780d Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 1 Oct 2015 13:31:13 +0100 Subject: [PATCH] Drop spurious notices in test Getting some "rehashing catalog" debug messages in PG 9.4 --- tests/test_connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index ee742580..68bb6f05 100755 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -154,7 +154,8 @@ class ConnectionTests(ConnectingTestCase): sql = " ".join(["create temp table table2_%d (id serial);" % j for j in range(i, i+10)]) cur.execute(sql) - self.assertEqual(100, len(conn.notices)) + self.assertEqual(len([n for n in conn.notices if 'CREATE TABLE' in n]), + 100) def test_notices_noappend(self): conn = self.conn