Opened 11 years ago

Closed 11 years ago

#354 closed defect (fixed)

Unit tests fail with old version of MySQLdb

Reported by: Steve Steiner Owned by: Adrian Holovaty
Component: Tools Version: 1.0
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I changed to the 'tests' directory and attempted to run the tests with the following result:

~/Development/django/tests->python ./runtests.py
Running tests with database 'mysql'
Traceback (most recent call last):

File "./runtests.py", line 202, in ?

t.run_tests()

File "./runtests.py", line 85, in run_tests

db.connection.autocommit()

TypeError: function takes exactly 1 argument (0 given)

Change History (3)

comment:1 Changed 11 years ago by Jacob

This works just fine for me, so it's probably that you're running an older version of MySQLdb; I can't seem to find in our docs what version of MySQLdb you're supposed to have; what version are you using?

comment:2 Changed 11 years ago by Adrian Holovaty

priority: highestnormal
Severity: blockernormal
Summary: runtests.py fails with database mysqlUnit tests fail with old version of MySQLdb

comment:3 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

I believe this is fixed. Please reopen and indicate your MySQLdb version if it's still a problem.

Note: See TracTickets for help on using tickets.
Back to Top