Skip to content

Commit

Permalink
close file handle for yaml file in test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkrug committed Feb 26, 2018
1 parent e99a48c commit d4fc847
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4fc847

Please sign in to comment.