diff options
Diffstat (limited to 'source/tests/bl_test.py')
-rw-r--r-- | source/tests/bl_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/tests/bl_test.py b/source/tests/bl_test.py index 5dd7dbe32d7..cfe91356444 100644 --- a/source/tests/bl_test.py +++ b/source/tests/bl_test.py @@ -170,7 +170,9 @@ def main(): md5_update = md5_instance.update for f in md5_source: - md5_update(open(f, "rb").read()) + filehandle = open(f, "rb") + md5_update(filehandle.read()) + filehandle.close() md5_new = md5_instance.hexdigest() |