mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-09 23:10:24 +01:00
test: use pipes.quote on py2
This commit is contained in:
+4
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user