Testing: Fix unclosed file open

This commit is contained in:
Mike Auty
2022-12-07 21:25:22 +00:00
parent 4cf0a185e3
commit e67bac4080
+2 -3
View File
@@ -120,9 +120,8 @@ def test_windows_hivelist(image, volatility, python):
def test_windows_dumpfiles(image, volatility, python):
json_file = open("./test/known_files.json")
known_files = json.load(json_file)
with open("./test/known_files.json") as json_file:
known_files = json.load(json_file)
failed_chksms = 0