Skip to content

Commit

Permalink
py3 test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Apr 12, 2016
1 parent 9cdc7f6 commit 8f93743
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tqdm/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
2 changes: 1 addition & 1 deletion tqdm/tests/tests_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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
Expand Down

0 comments on commit 8f93743

Please sign in to comment.