Skip to content
Snippets Groups Projects
Commit f778be2b authored by ulif's avatar ulif
Browse files

Close file descriptor properly.

Stop py.test complaining.
parent 73da7153
No related branches found
Tags v0.2
No related merge requests found
...@@ -53,6 +53,7 @@ class TestHandleOptions(object): ...@@ -53,6 +53,7 @@ class TestHandleOptions(object):
options = handle_options(['mywords', ]) options = handle_options(['mywords', ])
assert options.infile is not None assert options.infile is not None
assert options.infile.read() == 'one\ntwo\n' assert options.infile.read() == 'one\ntwo\n'
options.infile.close()
def test_handle_options_version(self): def test_handle_options_version(self):
# we can ask for version infos # we can ask for version infos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment