diff --git a/tests/unit/lib/utils/test_file_utils.py b/tests/unit/lib/utils/test_file_utils.py index 8a23f7bc8c..c26eb3c7de 100644 --- a/tests/unit/lib/utils/test_file_utils.py +++ b/tests/unit/lib/utils/test_file_utils.py @@ -8,6 +8,7 @@ class TestFile(TestCase): def test_file_remove(self): _file = tempfile.NamedTemporaryFile(delete=False) + _file.close() remove(_file.name) self.assertFalse(os.path.exists(_file.name)) # No Exception thrown