Fixed bug in tests/runtests.py -- some versions of MySQLdb require an argument to connection.autocommit()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6beab20722
commit
b63abf0379
|
@ -94,7 +94,7 @@ class TestRunner:
|
||||||
# within transactions.
|
# within transactions.
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
try:
|
try:
|
||||||
db.connection.autocommit()
|
db.connection.autocommit(1)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
self.output(1, "Creating test database")
|
self.output(1, "Creating test database")
|
||||||
|
@ -180,7 +180,7 @@ class TestRunner:
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
self.output(1, "Deleting test database")
|
self.output(1, "Deleting test database")
|
||||||
try:
|
try:
|
||||||
db.connection.autocommit()
|
db.connection.autocommit(1)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue