eq_(c.connection.connection.encoding, test_encoding)
@testing.only_on(
- ['postgresql+psycopg2', 'postgresql+pg8000', 'postgresql+psycopg2cffi'],
+ ['postgresql+psycopg2', 'postgresql+pg8000',
+ 'postgresql+psycopg2cffi'],
'psycopg2 / pg8000 - specific feature')
@engines.close_open_connections
def test_autocommit_isolation_level(self):
from sqlalchemy.dialects.postgresql import psycopg2cffi, pg8000, \
psycopg2, base
- dialects = pg8000.dialect(), psycopg2.dialect(), psycopg2cffi.dialect()
+ dialects = (pg8000.dialect(), psycopg2.dialect(),
+ psycopg2cffi.dialect())
for dialect in dialects:
typ = Numeric().dialect_impl(dialect)
for code in base._INT_TYPES + base._FLOAT_TYPES + \