# HG changeset patch # User domruf # Date 2017-08-07 23:15:30 # Node ID eb4bdc3248751a7f77cbb88abb52f7d330f7e757 # Parent 0866bb29f2177410fc74c5aff306e237af0b0e07 tests: replace touch command with platform independent python code diff --git a/kallithea/tests/other/test_vcs_operations.py b/kallithea/tests/other/test_vcs_operations.py --- a/kallithea/tests/other/test_vcs_operations.py +++ b/kallithea/tests/other/test_vcs_operations.py @@ -96,7 +96,7 @@ def _add_files_and_push(webserver, vcs, cwd = os.path.join(DEST) #added_file = '%ssetupążźć.py' % _RandomNameSequence().next() added_file = '%ssetup.py' % _RandomNameSequence().next() - Command(cwd).execute('touch %s' % added_file) + open(os.path.join(cwd, added_file), 'a').close() Command(cwd).execute('%s add %s' % (vcs, added_file)) email = 'me@example.com'