py3 test fix

This commit is contained in:
Casper da Costa-Luis 2016-04-12 17:12:08 +00:00
parent 9cdc7f65bb
commit 8f93743de5
2 changed files with 2 additions and 2 deletions

View File

@ -137,4 +137,4 @@ def _term_move_up(): # pragma: no cover
def _sh(*cmd, **kwargs):
return subprocess.Popen(cmd, stdout=subprocess.PIPE,
**kwargs).communicate()[0]
**kwargs).communicate()[0].decode('utf-8')

View File

@ -9,7 +9,7 @@ from tests_tqdm import with_setup, pretest, posttest, _range
def _sh(*cmd, **kwargs):
return subprocess.Popen(cmd, stdout=subprocess.PIPE,
**kwargs).communicate()[0]
**kwargs).communicate()[0].decode('utf-8')
# WARNING: this should be the last test as it messes with sys.stdin, argv