[ARVADOS] updated: 1.3.0-147-gaa95ea325

Git user git at public.curoverse.com
Fri Jan 11 10:12:57 EST 2019


Summary of changes:
 sdk/cwl/tests/test_job.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

       via  aa95ea325564f844472c1278615ff083a33cb151 (commit)
      from  471f143424d8d471a83469df1c34300e3692f70c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit aa95ea325564f844472c1278615ff083a33cb151
Author: Eric Biagiotti <ebiagiotti at veritasgenetcs.com>
Date:   Fri Jan 11 10:12:52 2019 -0500

    13306: Added py2 and 3 compatible 'next' for test_job.TestWorkflow.test_run
    
    Arvados-DCO-1.1-Signed-off-by:  Eric Biagiotti <ebiagiotti at veritasgenetics.com>

diff --git a/sdk/cwl/tests/test_job.py b/sdk/cwl/tests/test_job.py
index 5476496e6..ab72af3f2 100644
--- a/sdk/cwl/tests/test_job.py
+++ b/sdk/cwl/tests/test_job.py
@@ -5,6 +5,7 @@
 from future import standard_library
 standard_library.install_aliases()
 from builtins import str
+from builtins import next
 
 import functools
 import json
@@ -404,8 +405,8 @@ class TestWorkflow(unittest.TestCase):
         arvtool.formatgraph = None
         it = arvtool.job({}, mock.MagicMock(), runtimeContext)
 
-        it.next().run(runtimeContext)
-        it.next().run(runtimeContext)
+        next(it).run(runtimeContext)
+        next(it).run(runtimeContext)
 
         with open("tests/wf/scatter2_subwf.cwl") as f:
             subwf = StripYAMLComments(f.read())
@@ -441,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'''{
   "fileblub": {
     "basename": "token.txt",
     "class": "File",
@@ -483,8 +484,9 @@ class TestWorkflow(unittest.TestCase):
         arvtool = arvados_cwl.ArvadosWorkflow(runner, tool, loadingContext)
         arvtool.formatgraph = None
         it = arvtool.job({}, mock.MagicMock(), runtimeContext)
-        it.next().run(runtimeContext)
-        it.next().run(runtimeContext)
+        
+        next(it).run(runtimeContext)
+        next(it).run(runtimeContext)
 
         with open("tests/wf/echo-subwf.cwl") as f:
             subwf = StripYAMLComments(f.read())

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list