mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Drop spurious notices in test
Getting some "rehashing catalog" debug messages in PG 9.4
This commit is contained in:
parent
14246a5689
commit
7e94ce1f14
|
@ -154,7 +154,8 @@ class ConnectionTests(ConnectingTestCase):
|
||||||
sql = " ".join(["create temp table table2_%d (id serial);" % j for j in range(i, i+10)])
|
sql = " ".join(["create temp table table2_%d (id serial);" % j for j in range(i, i+10)])
|
||||||
cur.execute(sql)
|
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):
|
def test_notices_noappend(self):
|
||||||
conn = self.conn
|
conn = self.conn
|
||||||
|
|
Loading…
Reference in New Issue
Block a user