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

Do not leave trash in workdir.

parent 06f8d211
No related branches found
No related tags found
No related merge requests found
......@@ -158,8 +158,9 @@ class TestDicewareModule(object):
assert options.specials == 0
assert options.infile is None
def test_handle_options_infile(self):
def test_handle_options_infile(self, tmpdir):
# we can give an infile
tmpdir.chdir()
with open('mywords', 'w') as fd:
fd.write('one\ntwo\n')
options = handle_options(['mywords', ])
......
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