Skip to content

Commit d8e01ce

Browse files
committed
also some unicode ascii for Python 2...
1 parent c167389 commit d8e01ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_provenance.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ def test_secondary_files_implicit(self):
9595
file1idx = os.path.join(tmpdir, "foo1.txt.idx")
9696

9797
with open(file1, "w", encoding="ascii") as f:
98-
f.write("foo")
98+
f.write(u"foo")
9999
with open(file1idx, "w", encoding="ascii") as f:
100-
f.write("bar")
100+
f.write(u"bar")
101101

102102
# secondary will be picked up by .idx
103103
self.cwltool(get_data('tests/wf/sec-wf.cwl'), "--file1", file1)
@@ -110,9 +110,9 @@ def test_secondary_files_explicit(self):
110110
file1idx = tempfile.mktemp("bar")
111111

112112
with open(file1, "w", encoding="ascii") as f:
113-
f.write("foo")
113+
f.write(u"foo")
114114
with open(file1idx, "w", encoding="ascii") as f:
115-
f.write("bar")
115+
f.write(u"bar")
116116

117117
# explicit secondaryFiles
118118
job = {

0 commit comments

Comments
 (0)