From b3d9e1985635b7d6c8dd16179f1adb34b9183b4b Mon Sep 17 00:00:00 2001 From: Changlin Ke Date: Mon, 22 Jul 2024 11:57:56 +0200 Subject: [PATCH] Update tests/test_provenance.py Co-authored-by: Michael R. Crusoe <1330696+mr-c@users.noreply.github.com> --- tests/test_provenance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_provenance.py b/tests/test_provenance.py index ec864f844..2f0359ae6 100644 --- a/tests/test_provenance.py +++ b/tests/test_provenance.py @@ -976,8 +976,8 @@ def test_directory_workflow_no_listing_no_input(tmp_path: Path) -> None: if p.is_file(): print(f"Analysing file {f!r} {p!r}") - with open(p, "r", encoding="ascii") as f: - content = f.read() + with open(p, "r", encoding="ascii") as fh: + content = fh.read() print(f"Content: {content!r}") assert not p.is_file(), f"Could find {f!r} as {p!r}" else: