Skip invalid values test on mysql

This commit is contained in:
Stefan Wehrmeyer 2016-10-17 15:16:13 +02:00
parent cd015d5e9a
commit 6fc8bfed51

View File

@ -126,8 +126,8 @@ class DatabaseTestCase(unittest.TestCase):
assert len(self.db['weather']) == init_length assert len(self.db['weather']) == init_length
def test_invalid_values(self): def test_invalid_values(self):
if 'mysql.connector' in self.db.engine.dialect.dbapi.__name__: if 'mysql' in self.db.engine.dialect.dbapi.__name__:
# WARNING: mysql-connector seems to be doing some weird type casting upon insert. # WARNING: mysql seems to be doing some weird type casting upon insert.
# The mysql-python driver is not affected but it isn't compatible with Python 3 # The mysql-python driver is not affected but it isn't compatible with Python 3
# Conclusion: use postgresql. # Conclusion: use postgresql.
return return