mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-03 11:50:08 +03:00
Rewrite list creation as list literal
This commit is contained in:
parent
58fc5e4711
commit
625c3cb539
|
@ -366,9 +366,7 @@ class HstoreTestCase(ConnectingTestCase):
|
||||||
from psycopg2.extras import register_hstore
|
from psycopg2.extras import register_hstore
|
||||||
register_hstore(self.conn)
|
register_hstore(self.conn)
|
||||||
|
|
||||||
ds = []
|
ds = [{}, {'a': 'b', 'c': None}]
|
||||||
ds.append({})
|
|
||||||
ds.append({'a': 'b', 'c': None})
|
|
||||||
|
|
||||||
ab = map(chr, range(32, 128))
|
ab = map(chr, range(32, 128))
|
||||||
ds.append(dict(zip(ab, ab)))
|
ds.append(dict(zip(ab, ab)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user