# HG changeset patch # User domruf # Date 2016-05-02 23:38:23 # Node ID 04c82eb326fb32130dd7903c82dd98b152d68332 # Parent 894ab347d808a6737cde91553799b1c017102f08 tests: avoid unicode in test case on Windows - the Windows command line can't easily handle "exotic" characters diff --git a/kallithea/tests/other/manual_test_vcs_operations.py b/kallithea/tests/other/manual_test_vcs_operations.py --- a/kallithea/tests/other/manual_test_vcs_operations.py +++ b/kallithea/tests/other/manual_test_vcs_operations.py @@ -109,10 +109,13 @@ def _add_files_and_push(vcs, DEST, **kwa Command(cwd).execute('touch %s' % added_file) Command(cwd).execute('%s add %s' % (vcs, added_file)) + if os.name == 'nt': + author_str = 'User ' + else: + author_str = 'User ǝɯɐᴎ ' for i in xrange(kwargs.get('files_no', 3)): cmd = """echo "added_line%s" >> %s""" % (i, added_file) Command(cwd).execute(cmd) - author_str = 'User ǝɯɐᴎ ' if vcs == 'hg': cmd = """hg commit -m "committed new %s" -u "%s" "%s" """ % ( i, author_str, added_file