Skip to content

Commit 9b563bf

Browse files
committed
Remove unittests
1 parent ac1df03 commit 9b563bf

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

test/logformats_test.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
1212
TODO: correctly set preserves_channel and adds_default_channel
1313
"""
14-
import gzip
1514
import logging
1615
import unittest
1716
import tempfile
@@ -559,34 +558,6 @@ def test_ignore_comments(self):
559558
_msg_list = self._read_log_file("logfile.asc")
560559

561560

562-
class TestGzipASCFileFormat(ReaderWriterTest):
563-
"""Tests can.GzipASCWriter and can.GzipASCReader"""
564-
565-
def _setup_instance(self):
566-
super()._setup_instance_helper(
567-
can.GzipASCWriter,
568-
can.GzipASCReader,
569-
binary_file=True,
570-
check_comments=True,
571-
preserves_channel=False,
572-
adds_default_channel=0,
573-
)
574-
575-
def assertIncludesComments(self, filename):
576-
"""
577-
Ensures that all comments are literally contained in the given file.
578-
579-
:param filename: the path-like object to use
580-
"""
581-
if self.original_comments:
582-
# read the entire outout file
583-
with gzip.open(filename, "rt" if self.binary_file else "r") as file:
584-
output_contents = file.read()
585-
# check each, if they can be found in there literally
586-
for comment in self.original_comments:
587-
self.assertIn(comment, output_contents)
588-
589-
590561
class TestBlfFileFormat(ReaderWriterTest):
591562
"""Tests can.BLFWriter and can.BLFReader.
592563

0 commit comments

Comments
 (0)