# -*- encoding: utf-8
+from __future__ import with_statement
from sqlalchemy.testing import eq_, engines, pickleable
import datetime
import os
)]
for value in test_items:
float_table.insert().execute(floatcol=value)
- except Exception as e:
- raise e
+ except Exception:
+ raise
# todo this should suppress warnings, but it does not
# coding: utf-8
-
+from __future__ import with_statement
from sqlalchemy.testing.assertions import eq_, assert_raises, \
assert_raises_message, is_, AssertsExecutionResults, \
AssertsCompiledSQL, ComparesTables
:
try:
con.execute(ddl)
- except exc.DBAPIError as e:
+ except exc.DBAPIError, e:
if not 'already exists' in str(e):
raise e
con.execute('CREATE TABLE testtable (question integer, answer '
# coding: utf-8
+from __future__ import with_statement
from sqlalchemy.testing.assertions import eq_, assert_raises, \
assert_raises_message, is_, AssertsExecutionResults, \
AssertsCompiledSQL, ComparesTables