Skip to content

Commit f018277

Browse files
authored
Merge pull request #421 from psafont/python3-test
fix tests when python3 is installed as default
2 parents 8d41828 + 7ab0d01 commit f018277

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/wf/echo.cwl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ inputs:
55
script:
66
type: string
77
default: |
8+
from __future__ import print_function
89
import sys
9-
print sys.argv[1]
10+
print(sys.argv[1])
1011
if sys.argv[1] == "2":
1112
exit(1)
1213
else:
@@ -19,4 +20,4 @@ outputs:
1920
type: File
2021
outputBinding:
2122
glob: foo$(inputs.r).txt
22-
arguments: [python, -c, $(inputs.script), $(inputs.r)]
23+
arguments: [python, -c, $(inputs.script), $(inputs.r)]

0 commit comments

Comments
 (0)