Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit e616f7a

Browse files
committed
python version fix for tests
1 parent 0d987db commit e616f7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/functional/test_run.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
13
import mock
24
from click.testing import CliRunner
35

@@ -31,7 +33,7 @@ def test_run_simple_file_with_args(self, get_files_patched, workspace_zip_patche
3133
post_patched.assert_called_with(self.url,
3234
params={'name': u'test', 'projectId': u'projectId',
3335
'workspaceFileName': 'bar',
34-
'command': 'python2 myscript.py a b',
36+
'command': 'python{} myscript.py a b'.format(str(sys.version_info[0])),
3537
'projectHandle': u'projectId',
3638
'container': u'paperspace/tensorflow-python'},
3739
data=None,
@@ -52,7 +54,7 @@ def test_run_python_command_with_args_and_no_workspace(self, post_patched):
5254
params={'name': u'test', 'projectId': u'projectId',
5355
'workspaceFileName': 'none',
5456
'workspace': 'none',
55-
'command': 'python2 -c print(foo)',
57+
'command': 'python{} -c print(foo)'.format(str(sys.version_info[0])),
5658
'projectHandle': u'projectId',
5759
'container': u'paperspace/tensorflow-python'},
5860
data=None,

0 commit comments

Comments
 (0)