Skip to content

Commit ff39cd4

Browse files
committed
update
1 parent 293d1b2 commit ff39cd4

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Diff for: python/tests/sbp/client/test_logger.py

-19
Original file line numberDiff line numberDiff 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

9879
def udp_handler(data):
9980
class MockRequestHandler(socketserver.BaseRequestHandler):

0 commit comments

Comments
 (0)