summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-10-08 20:56:34 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-10-08 20:56:34 +0000
commitb63abf037943741db7c1958537ebe3233ed6d6ee (patch)
treea2281171dcf28e46ceb93ec54e945cb2c3aef5a7 /tests
parent6beab20722c5c4171541ebf10530f8f9949aa04e (diff)
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
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 33ef7e0455..fbe20807ce 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -94,7 +94,7 @@ class TestRunner:
# 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 @@ class TestRunner:
cursor = db.cursor()
self.output(1, "Deleting test database")
try:
- db.connection.autocommit()
+ db.connection.autocommit(1)
except AttributeError:
pass
else: