diff 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
line wrap: on
line diff
--- a/tests/test-check-py3-commands.t	Sun Nov 06 04:10:33 2016 +0530
+++ b/tests/test-check-py3-commands.t	Sun Nov 06 04:17:19 2016 +0530
@@ -9,6 +9,6 @@
   >   $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1
   > done
   version
-  TypeError: str expected, not bytes
+  TypeError: startswith first arg must be str or a tuple of str, not bytes
   debuginstall
-  TypeError: str expected, not bytes
+  TypeError: startswith first arg must be str or a tuple of str, not bytes