Mercurial > kallithea
changeset 6787:eb4bdc324875
tests: replace touch command with platform independent python code
author | domruf <dominikruf@gmail.com> |
---|---|
date | Mon, 07 Aug 2017 23:15:30 +0200 |
parents | 0866bb29f217 |
children | e4d2fec64955 |
files | kallithea/tests/other/test_vcs_operations.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/other/test_vcs_operations.py Sun Aug 06 20:18:37 2017 +0200 +++ b/kallithea/tests/other/test_vcs_operations.py Mon Aug 07 23:15:30 2017 +0200 @@ -96,7 +96,7 @@ 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'