File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -75,25 +75,6 @@ def test_non_utf8_json_log():
7575 _non_utf8_json_log (conventional = False , fetch_next = lambda x : next (x ))
7676 _non_utf8_json_log (conventional = True , fetch_next = lambda x : x )
7777
78- def _msg_print (conventional , fetch_next ):
79- log_datafile = "./data/serial_link_log_20150428-084729.log.dat"
80- with open (log_datafile , 'r' ) as infile :
81- with JSONLogIterator (infile , conventional = conventional ) as log :
82- with warnings .catch_warnings (record = True ) as w :
83- for _ , _ in fetch_next (log ):
84- pass
85- warnings .simplefilter ("always" )
86- # Check for warnings.
87- assert len (w ) == 1
88- assert issubclass (w [0 ].category , RuntimeWarning )
89- assert str (w [0 ].message ).startswith ('Bad message parsing for line' )
90-
91- @pytest .mark .xfail
92- def test_msg_print ():
93- """
94- """
95- _msg_print (conventional = False , fetch_next = lambda x : next (x ))
96- _msg_print (conventional = True , fetch_next = lambda x : x )
9778
9879def udp_handler (data ):
9980 class MockRequestHandler (socketserver .BaseRequestHandler ):
You can’t perform that action at this time.
0 commit comments