(capsys)
| 12 | |
| 13 | |
| 14 | def test_wrong_obj(capsys): |
| 15 | class Empty: |
| 16 | pass |
| 17 | _ = lief.parse(Empty()) |
| 18 | captured = capsys.readouterr() |
| 19 | assert "LIEF parser interface does not support this Python object: test_python.Empty" in captured.err |
| 20 | |
| 21 | def test_pathlib(): |
| 22 | lspath = Path(get_sample('ELF/ELF64_x86-64_binary_ls.bin')) |