unit test failures: "Cursor isolation with 2 cursors, different connections, trans" "Interface exports the connect()-function"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Connector/Python |
Triaged
|
High
|
Geert JM Vanderkelen |
Bug Description
I branched it, installed it (like in README, went ok; this is Ubuntu 8.10 64-bit). I have this revision as latest:
102 Geert Vanderkelen 2009-10-07
revision-
lp:Bug#445002 - unit tests fail when run with python 2.4
Started a MySQL 5.1 server with:
cd mysql-test
./mtr --mem alias --start &
Back in the directory of connector/python, did
python unittests.py -H localhost -S /home/mysql_
(and "root" has all privileges according to the setup done by mtr, and "test" is created by mtr),
and it failed like this:
<cut irrelevant things>
Cursor isolation with 2 cursors, different connections, trans. ... FAIL
<cut>
Interface exports the connect()-function ... ERROR
<cut>
=======
ERROR: Interface exports the connect()-function
-------
Traceback (most recent call last):
File "/home/
db = myconn.connect()
File "/home/
return MySQL(*args, **kwargs)
File "/home/
self.
File "/home/
self.
File "/home/
database=
File "/home/
buf = self.conn.recv()[0]
File "/home/
self.
File "/home/
self.
File "/home/
raise InterfaceError(err)
InterfaceError: 1045 (28000): Access denied for user ''@'localhost' (using password: NO)
=======
FAIL: Cursor isolation with 2 cursors, different connections, trans.
-------
Traceback (most recent call last):
File "/home/
self.
File "/home/
self.
AssertionError: None != (1L, u'myconnpy')
-------
Ran 138 tests in 1.790s
FAILED (failures=1, errors=1)
The "Access denied" made me think that the test was wrongly trying to connect as user '' (instead of using what is passed to -u); to see if this was the case I restarted mysqld with:
./mtr --mem alias --start --mysqld=
(to eliminate any privilege checks in mysqld), but the errors were the same.
I see that some successful pieces (before the failure) were able to connect, I see them in mysqld's query log.
If there is something I can do to help, let me know.
tags: | added: cursor tests |
Changed in myconnpy: | |
status: | In Progress → Triaged |
I can't repeat this problem using:
./unittests.py -H loclahost -S /tmp/mysql.sock -u root -D test -t pep249
Tested using MacOSX and Linux, just to make sure the getpass() works owkay.