From: Mike Bayer Date: Fri, 31 Jan 2014 22:29:19 +0000 (-0500) Subject: no Binary here if we are running a test with no DBAPI X-Git-Tag: rel_0_8_5~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7f906f5e6671c0ba27e3ccee16afef407205a44;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git no Binary here if we are running a test with no DBAPI --- diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index a9e015153c..0107530d62 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -1746,6 +1746,8 @@ class _Binary(TypeEngine): # Python 3 - sqlite3 doesn't need the `Binary` conversion # here, though pg8000 does to indicate "bytea" def bind_processor(self, dialect): + if dialect.dbapi is None: + return None DBAPIBinary = dialect.dbapi.Binary def process(value):