summaryrefslogtreecommitdiff
path: root/tests/test_connection.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2015-10-01 13:31:13 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2015-10-01 13:31:13 +0100
commit7e94ce1f14ae25eb6ff901e8c6822d858525780d (patch)
treedbd161f3baac33d30917783077d8b49b2b06ef2d /tests/test_connection.py
parent14246a5689bb6cfcfabe93e66e500be7eb7ea29a (diff)
downloadpsycopg2-7e94ce1f14ae25eb6ff901e8c6822d858525780d.tar.gz
Drop spurious notices in test
Getting some "rehashing catalog" debug messages in PG 9.4
Diffstat (limited to 'tests/test_connection.py')
-rwxr-xr-xtests/test_connection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_connection.py b/tests/test_connection.py
index ee74258..68bb6f0 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