[MERGE] fixes for TestCase.run_bzr* methods

Martin Pool mbp at sourcefrog.net
Tue Sep 25 07:57:18 BST 2007


On 9/25/07, Alexander Belchenko <bialix at ukr.net> wrote:

> This fix try to resolve problem that does not exists on Linux.
> I suppose that command line for some test auto-constructed based on
> output of some osutils or winutils functions. Almost all of them return
> unicode objects for paths or filenames (if sys.platform == 'win32').
> IMO it's the case.

Would the fix John suggests be ok for you?  I think it has less impact
on other parts of the test suite.

if isinstance(args, unicode):
 args = [a.decode('utf8') for a in shlex.split(args.encode('utf8'))]

-- 
Martin



More information about the bazaar mailing list