Comment 4 for bug 446150

Revision history for this message
GuilhemBichot (guilhem-bichot) wrote :

I pulled 145, ran "python setup.py install", and then ran the tests:
======================================================================
ERROR: test_timeout (tests.test_bugs.Bug328998Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mysql_src/bzrrepos/connector_python/tests/test_bugs.py", line 43, in test_timeout
    c.execute, "SELECT SLEEP(%d)" % (config['connection_timeout']+4))
  File "/usr/lib/python2.5/unittest.py", line 320, in failUnlessRaises
    callableObj(*args, **kwargs)
  File "/home/mysql_src/bzrrepos/connector_python/mysql/connector/cursor.py", line 314, in execute
    res = self.protocol.cmd_query(stmt)
  File "/home/mysql_src/bzrrepos/connector_python/mysql/connector/protocol.py", line 262, in cmd_query
    buf = self.conn.recv()[0]
  File "/home/mysql_src/bzrrepos/connector_python/mysql/connector/connection.py", line 72, in recv
    header = self.sock.recv(4, self.socket_flags)
timeout: timed out

======================================================================
FAIL: Cursor isolation with 2 cursors, different connections, trans.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mysql_src/bzrrepos/connector_python/tests/test_pep249.py", line 370, in test_isolation2
    self._isolation_test(self.db,db2,'InnoDB')
  File "/home/mysql_src/bzrrepos/connector_python/tests/test_pep249.py", line 355, in _isolation_test
    self.assertEqual(None, result)
AssertionError: None != (1L, u'myconnpy')

----------------------------------------------------------------------