diff --git a/tests/test_yaml.py b/tests/test_yaml.py index f02fabb1..dab9d81f 100644 --- a/tests/test_yaml.py +++ b/tests/test_yaml.py @@ -11,7 +11,9 @@ class YAMLTest(unittest.TestCase): def get_yaml_file(self): apps_yml = open('apps.yml') - return apps_yml.read() + contents = apps_yml.read() + apps_yml.close() + return contents def test_output_exists(self): assert self.get_yaml_file() is not None