Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit b63abf037943741db7c1958537ebe3233ed6d6ee 1 parent 6beab20
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/runtests.py
View
4 tests/runtests.py
@@ -94,7 +94,7 @@ def run_tests(self):
# within transactions.
cursor = db.cursor()
try:
- db.connection.autocommit()
+ db.connection.autocommit(1)
except AttributeError:
pass
self.output(1, "Creating test database")
@@ -180,7 +180,7 @@ def run_tests(self):
cursor = db.cursor()
self.output(1, "Deleting test database")
try:
- db.connection.autocommit()
+ db.connection.autocommit(1)
except AttributeError:
pass
else:
Please sign in to comment.
Something went wrong with that request. Please try again.