Skip to content

Commit

Permalink
tests: fix file descriptor leak
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed May 25, 2017
1 parent c435de0 commit 9cdf9a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion qubesadmin/tests/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def test_004_qubesd_call_payload_stream_proc(self):
with open(tmpdir + '/payload') as payload:
self.assertEqual(payload.read(), 'some payload\n')


def test_010_run_service(self):
self.listen_and_send(b'0\0')
with mock.patch('subprocess.Popen') as mock_proc:
Expand Down
1 change: 1 addition & 0 deletions qubesadmin/tests/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def test_040_import_data(self):
input_proc = subprocess.Popen(['echo', '-n', 'some-data'],
stdout=subprocess.PIPE)
self.vol.import_data(input_proc.stdout)
input_proc.stdout.close()
self.assertAllCalled()


Expand Down

0 comments on commit 9cdf9a0

Please sign in to comment.