Rewrite list creation as list literal

This commit is contained in:
Hugo 2017-11-28 10:32:04 +02:00 committed by Daniele Varrazzo
parent 955526b200
commit 7282ef0d14

View File

@ -365,9 +365,7 @@ class HstoreTestCase(ConnectingTestCase):
from psycopg2.extras import register_hstore
register_hstore(self.conn)
ds = []
ds.append({})
ds.append({'a': 'b', 'c': None})
ds = [{}, {'a': 'b', 'c': None}]
ab = map(chr, range(32, 128))
ds.append(dict(zip(ab, ab)))