comparison tests/test-check-py3-commands.t @ 30305:af7c60988f6e

py3: make scmutil.rcpath() return bytes This patch make sure scmutil.rcpath() returns bytes independent of which platform is used on Python 3. If we want to change type for windows we can just conditionalize the return variable.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 06 Nov 2016 04:17:19 +0530
parents d69d86e7d6c8
children 9df29b7c62cf
comparison
equal deleted inserted replaced
30304:ba2c04059317 30305:af7c60988f6e
7 $ for cmd in version debuginstall ; do 7 $ for cmd in version debuginstall ; do
8 > echo $cmd 8 > echo $cmd
9 > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1 9 > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1
10 > done 10 > done
11 version 11 version
12 TypeError: str expected, not bytes 12 TypeError: startswith first arg must be str or a tuple of str, not bytes
13 debuginstall 13 debuginstall
14 TypeError: str expected, not bytes 14 TypeError: startswith first arg must be str or a tuple of str, not bytes