From b7c1b0b3bd6ca201617b4eb466ccaf32485f57ad Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Mon, 4 Sep 2023 17:20:43 +0200 Subject: [PATCH] Update tests/e2e/test_runtime.py Co-authored-by: Alex --- tests/e2e/test_runtime.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/e2e/test_runtime.py b/tests/e2e/test_runtime.py index 6965defc..1f011b4a 100644 --- a/tests/e2e/test_runtime.py +++ b/tests/e2e/test_runtime.py @@ -247,9 +247,8 @@ def test_hot_reload(): stdout=subprocess.PIPE, ) - fin = open(rulebook, "rt") - original_data = fin.read() - fin.close() + with open(rulebook, "rt") as file: + original_data = file.read() found_rule_1_in_out = False found_rule_2_in_out = False