Tests failing (shows on Windows)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Connector/Python |
Fix Released
|
Low
|
Geert JM Vanderkelen |
Bug Description
Some tests are failing on Windows, but they are showing some problems in the way results are compared in the unittests. Thus not really a Windows problem, just need to remove the lazy checks.
=======
FAIL: MySQLCursorBuffered object execute()-method
-------
Traceback (most recent call last):
File ".\tests\
self.
AssertionError: [(u'Warning', 1292L, u"Truncated incorrect DOUBLE value: 'a'"),
(u'Warning', 1292L, u"Truncated incorrect DOUBLE value: 'b'")] != [(u'Warning',
1292L, u"Truncated incorrect DOUBLE value: 'b'"), (u'Warning', 1292L, u"Truncate
d incorrect DOUBLE value: 'a'")]
=======
FAIL: MySQLCursor object _fetch_
-------
Traceback (most recent call last):
File ".\tests\
self.
AssertionError: [(u'Warning', 1292L, u"Truncated incorrect DOUBLE value: 'a'"),
(u'Warning', 1292L, u"Truncated incorrect DOUBLE value: 'b'")] != [(u'Warning',
1292L, u"Truncated incorrect DOUBLE value: 'b'"), (u'Warning', 1292L, u"Truncate
d incorrect DOUBLE value: 'a'")]
=======
FAIL: MySQLCursor object execute()-method
-------
Traceback (most recent call last):
File ".\tests\
self.
AssertionError: [(u'Warning', 1292L, u"Truncated incorrect DOUBLE value: 'a'"),
(u'Warning', 1292L, u"Truncated incorrect DOUBLE value: 'b'")] != [(u'Warning',
1292L, u"Truncated incorrect DOUBLE value: 'b'"), (u'Warning', 1292L, u"Truncate
d incorrect DOUBLE value: 'a'")]
=======
FAIL: lp:499362 Setting character set at connection fails
-------
Traceback (most recent call last):
File ".\tests\
self.
AssertionError: [(u'CHARACTER_
NT', u'latin7'), (u'CHARACTER_
NECTION', u'latin7'), (u'CHARACTER_
IENT', u'latin7')]
=======
FAIL: examples/inserts.py
-------
Traceback (most recent call last):
File ".\tests\
self.
File ".\tests\
self.fail(e)
AssertionError: Failed converting row to Python types; invalid literal for int()
with base 10: 'abcabcabcabcab
bcabcabcabcabca
-------
Related branches
Changed in myconnpy: | |
status: | Fix Committed → Fix Released |
(The last failure in tests is moving to another bug report)
revno: 175
committer: Geert Vanderkelen <email address hidden>
branch nick: myconnpy-bug501287
timestamp: Thu 2009-12-31 12:35:59 +0100
message:
Fix in unittests for comparing results from MySQL and what is expected
* Order can't be guaranteed for result of certian commands, e.g. ests.cmpResult to do the
SHOW WARNIGS, so we use MySQLConnectorT
comparison row by row.
* Most tests cases (if not all) are updated to use the new comparison
method.