diff --git a/pandas/io/tests/test_sql.py b/pandas/io/tests/test_sql.py index 217114a00e980..8c29b26f80d01 100644 --- a/pandas/io/tests/test_sql.py +++ b/pandas/io/tests/test_sql.py @@ -1398,8 +1398,12 @@ def test_datetime_date(self): def test_datetime_time(self): # test support for datetime.time - raise nose.SkipTest("datetime.time not supported for sqlite fallback") - + df = DataFrame([time(9, 0, 0), time(9, 1, 30)], columns=["a"]) + # test it raises an error and not fails silently (GH8341) + if self.flavor == 'sqlite': + self.assertRaises(sqlite3.InterfaceError, sql.to_sql, df, + 'test_time', self.conn) + def _get_index_columns(self, tbl_name): ixs = sql.read_sql_query( "SELECT * FROM sqlite_master WHERE type = 'index' " +