File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change 11
11
12
12
TODO: correctly set preserves_channel and adds_default_channel
13
13
"""
14
- import gzip
15
14
import logging
16
15
import unittest
17
16
import tempfile
@@ -559,34 +558,6 @@ def test_ignore_comments(self):
559
558
_msg_list = self ._read_log_file ("logfile.asc" )
560
559
561
560
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
-
590
561
class TestBlfFileFormat (ReaderWriterTest ):
591
562
"""Tests can.BLFWriter and can.BLFReader.
592
563
You can’t perform that action at this time.
0 commit comments