Skip to content

Commit 45d806f

Browse files
author
William Ballenthin
committed
test_43: expect UnicodeDecodeError
1 parent b400500 commit 45d806f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_issue_43.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ def test_issue_43(data_path):
2222
'''
2323
with evtx.Evtx(os.path.join(data_path, 'issue_43.evtx')) as log:
2424
bad_rec = get_record_by_num(log, 508)
25-
_ = bad_rec.xml()
25+
with pytest.raises(UnicodeDecodeError):
26+
_ = bad_rec.xml()
2627

0 commit comments

Comments
 (0)