diff -r eda8b28e3b1b -r 2e5be704bc96 tests/test-ui-color.py --- a/tests/test-ui-color.py Tue Mar 29 16:38:27 2016 +0530 +++ b/tests/test-ui-color.py Tue Mar 29 16:41:32 2016 +0530 @@ -1,3 +1,4 @@ +from __future__ import print_function import os from hgext import color from mercurial import dispatch, ui @@ -8,7 +9,7 @@ testui.write(('buffered\n')) testui.warn(('warning\n')) testui.write_err('error\n') -print repr(testui.popbuffer()) +print(repr(testui.popbuffer())) # test dispatch.dispatch with the same ui object hgrc = open(os.environ["HGRCPATH"], 'w') @@ -28,6 +29,6 @@ dispatch.dispatch(dispatch.request(['version', '-q'], ui_)) runcmd() -print "colored? " + str(issubclass(ui_.__class__, color.colorui)) +print("colored? " + str(issubclass(ui_.__class__, color.colorui))) runcmd() -print "colored? " + str(issubclass(ui_.__class__, color.colorui)) +print("colored? " + str(issubclass(ui_.__class__, color.colorui)))