Skip to content

Commit 476df47

Browse files
committed
test: improve test coverage
1 parent d9ca318 commit 476df47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ffpuppet/test_ffpuppet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,9 @@ def test_ffpuppet_19(tmp_path):
460460

461461
def test_ffpuppet_20(mocker, tmp_path):
462462
"""test collecting and cleaning up ASan logs"""
463-
fake_symbolize = mocker.patch("ffpuppet.core.symbolize_log", autospec=True)
464-
# add fake llvm-symbolizer for coverage
463+
# return False to increase test coverage, does not affect the test otherwise
464+
fake_symbolize = mocker.patch("ffpuppet.core.symbolize_log", return_value=False)
465+
# add fake llvm-symbolizer for test coverage
465466
(TESTFF_BIN.parent / LLVM_SYMBOLIZER).touch()
466467
with FFPuppet() as ffp:
467468
ffp.launch(TESTFF_BIN)

0 commit comments

Comments
 (0)