14886: Fixes mock issue between tests
[arvados.git] / sdk / cwl / arvados_cwl / pathmapper.py
index 2be850c5cdb2c2d7499b1d74c2fb0ee6733ed43b..e0445febdc9a0731314607417739747c8f0e632c 100644 (file)
@@ -120,7 +120,7 @@ class ArvPathMapper(PathMapper):
             remap.append((obj["location"], path + "/" + obj["basename"]))
         elif obj["location"].startswith("_:") and "contents" in obj:
             with c.open(path + "/" + obj["basename"], "w") as f:
-                f.write(obj["contents"].encode("utf-8"))
+                f.write(obj["contents"])
             remap.append((obj["location"], path + "/" + obj["basename"]))
         else:
             raise SourceLine(obj, "location", WorkflowException).makeError("Don't know what to do with '%s'" % obj["location"])