tests/test-check-py3-commands.t
author Pulkit Goyal <7895pulkit@gmail.com>
Wed, 30 Nov 2016 23:51:11 +0530
changeset 30569 bcb858396233
parent 30349 954002426f78
child 30586 2d555d753f0e
permissions -rw-r--r--
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

#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