From e34e6bf3ca364cb741cfa36aaf36bf79baea2041 Mon Sep 17 00:00:00 2001 From: Camille GOUTTEBROZE Date: Thu, 17 Apr 2014 14:05:57 +0200 Subject: [PATCH] Closing a file before removing it --- src/MEDLoader/Swig/SauvLoaderTest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MEDLoader/Swig/SauvLoaderTest.py b/src/MEDLoader/Swig/SauvLoaderTest.py index 8d7c0e1b5..7d45a72ec 100644 --- a/src/MEDLoader/Swig/SauvLoaderTest.py +++ b/src/MEDLoader/Swig/SauvLoaderTest.py @@ -382,6 +382,7 @@ class SauvLoaderTest(unittest.TestCase): pass line=f.readline() pass + f.close() os.remove(sauvFile) pass -- 2.39.2