test: use quote instead of shlex.quote

This commit is contained in:
Ruslan Kuprieiev
2018-12-02 19:55:22 +02:00
committed by GitHub
parent e1f44158c8
commit 1878c41c80
+1 -1
View File
@@ -194,7 +194,7 @@ class TestRunDeterministic(TestDvc):
command = [
'dvc', 'run', '--verbose', '-f', '{}.dvc'.format(target), '-d', 'file1', '-o', target,
'python', '-c', shlex.quote("open('{}', 'w').write('hi')").format(target),
'python', '-c', quote("open('{}', 'w').write('hi')").format(target),
]
if deterministic:
command.insert(2, '--deterministic')