13306: test_submit fixes for py2 unicode support
[arvados.git] / sdk / cwl / tests / test_job.py
index ab72af3f2cf6f7d9d4b77e066ca8f50b13c4bae5..281e8b42825d1f0d00d5d706a29850e9e4271349 100644 (file)
@@ -442,7 +442,7 @@ class TestWorkflow(unittest.TestCase):
 
         mockc.open().__enter__().write.assert_has_calls([mock.call(subwf)])
         mockc.open().__enter__().write.assert_has_calls([mock.call(
-b'''{
+bytes(b'''{
   "fileblub": {
     "basename": "token.txt",
     "class": "File",
@@ -450,7 +450,7 @@ b'''{
     "size": 0
   },
   "sleeptime": 5
-}''')])
+}'''))])
 
     # The test passes no builder.resources
     # Hence the default resources will apply: {'cores': 1, 'ram': 1024, 'outdirSize': 1024, 'tmpdirSize': 1024}