mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 01:16:34 +03:00
Rewrite list creation as list literal
This commit is contained in:
parent
955526b200
commit
7282ef0d14
|
@ -365,9 +365,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