Skip to content

Commit baf2416

Browse files
committed
remove redundant Sqlite test
1 parent 02f86e4 commit baf2416

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

‎test/logformats_test.py‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -329,28 +329,6 @@ def test_file_like_explicit_stop(self):
329329
def test_file_like_context_manager(self):
330330
pass
331331

332-
def test_writes_to_same_file(self):
333-
filename = self._get_temp_filename()
334-
335-
with can.SqliteWriter(filename) as first_listener:
336-
first_listener(generate_message(0x01))
337-
338-
with can.SqliteWriter(filename) as second_listener:
339-
second_listener(generate_message(0x02))
340-
341-
with sqlite3.connect(filename) as con:
342-
c = con.cursor()
343-
344-
c.execute("SELECT COUNT(*) FROM messages")
345-
self.assertEqual(2, c.fetchone()[0])
346-
347-
c.execute("SELECT * FROM messages")
348-
msg1 = c.fetchone()
349-
msg2 = c.fetchone()
350-
351-
self.assertEqual(msg1[1], 0x01)
352-
self.assertEqual(msg2[1], 0x02)
353-
354332

355333
class TestPrinter(unittest.TestCase):
356334
"""Tests that can.Printer does not crash"""

0 commit comments

Comments
 (0)