Skip to content

Commit

Permalink
Fix aux tests for Python 3.5
Browse files Browse the repository at this point in the history
I used the `encoding` param for `run()` which is for Python 3.6+. For
the moment I removed it so as to keep support for Python 3.5. Thanks
Travis CI.
  • Loading branch information
HacKanCuBa committed Sep 22, 2018
1 parent 3c15359 commit d1f9b7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions passphrase/tests/tests_aux.py
Expand Up @@ -182,12 +182,11 @@ def test_print_stderr(self):
string
)
],
encoding='UTF-8',
stdout=PIPE,
stderr=PIPE,
)
self.assertEqual(proc.stdout, '')
self.assertEqual(proc.stderr, string + '\n')
self.assertEqual(proc.stdout.decode('utf-8'), '')
self.assertEqual(proc.stderr.decode('utf-8'), string + '\n')
# The following is just for coverage, the actual test is above
Aux.print_stderr('')

Expand Down

0 comments on commit d1f9b7f

Please sign in to comment.