Don't assume that connection.autocommit is a callable
|Reported by:||Leo Soto M.||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
source:django/trunk/django/test/utils.py assumes that
connection.autocommit is going to be a callable. This is not true for some backends where it is a property (basically all JDBC based backends, also PyODBC and cx_Oracle).
The attached patch fixes this by taking into account the case where
is a property.