Mercurial > hg
view tests/test-check-py3-commands.t @ 30569:bcb858396233
py3: avoid use of basestring
"In this case, result is a source variable of a list to be returned, it
shouldn't be unicode. Hence we can use bytes instead of basestring here." -Yuya
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 30 Nov 2016 23:51:11 +0530 |
parents | 954002426f78 |
children | 2d555d753f0e |
line wrap: on
line source
#require py3exe This test helps in keeping a track on which commands we can run on Python 3 and see what kind of errors are coming up. The full traceback is hidden to have a stable output. $ for cmd in version debuginstall ; do > echo $cmd > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1 > done version TypeError: Can't convert 'bytes' object to str implicitly debuginstall TypeError: Can't convert 'bytes' object to str implicitly