test: use pipes.quote on py2

This commit is contained in:
Ruslan Kuprieiev
2018-12-02 19:45:43 +02:00
committed by GitHub
parent 6d4240dd8a
commit e1f44158c8
+4 -1
View File
@@ -187,7 +187,10 @@ class TestRunDeterministic(TestDvc):
def test(self):
def _run(target, deterministic=False):
from shlex import shlex
try: # py3
from shlex import quote
except ImportError: # py2
from pipes import quote
command = [
'dvc', 'run', '--verbose', '-f', '{}.dvc'.format(target), '-d', 'file1', '-o', target,