changeset 5966:04c82eb326fb

tests: avoid unicode in test case on Windows - the Windows command line can't easily handle "exotic" characters
author domruf <dominikruf@gmail.com>
date Mon, 02 May 2016 23:38:23 +0200
parents 894ab347d808
children 5c549b26231a
files kallithea/tests/other/manual_test_vcs_operations.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/other/manual_test_vcs_operations.py	Mon May 02 23:32:55 2016 +0200
+++ b/kallithea/tests/other/manual_test_vcs_operations.py	Mon May 02 23:38:23 2016 +0200
@@ -109,10 +109,13 @@
     Command(cwd).execute('touch %s' % added_file)
     Command(cwd).execute('%s add %s' % (vcs, added_file))
 
+    if os.name == 'nt':
+        author_str = 'User <me@example.com>'
+    else:
+        author_str = 'User ǝɯɐᴎ <me@example.com>'
     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 ǝɯɐᴎ <me@example.com>'
         if vcs == 'hg':
             cmd = """hg commit -m "committed new %s" -u "%s" "%s" """ % (
                 i, author_str, added_file