Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored October 08, 2005

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tests/runtests.py
4  tests/runtests.py
@@ -94,7 +94,7 @@ def run_tests(self):
94 94
             # within transactions.
95 95
             cursor = db.cursor()
96 96
             try:
97  
-                db.connection.autocommit()
  97
+                db.connection.autocommit(1)
98 98
             except AttributeError:
99 99
                 pass
100 100
             self.output(1, "Creating test database")
@@ -180,7 +180,7 @@ def run_tests(self):
180 180
             cursor = db.cursor()
181 181
             self.output(1, "Deleting test database")
182 182
             try:
183  
-                db.connection.autocommit()
  183
+                db.connection.autocommit(1)
184 184
             except AttributeError:
185 185
                 pass
186 186
             else:

0 notes on commit b63abf0

Please sign in to comment.
Something went wrong with that request. Please try again.