components/python/suds/patches/test.patch
changeset 6838 e94853206ef3
equal deleted inserted replaced
6837:b53f25b635fb 6838:e94853206ef3
       
     1 In-house patch that allows tests to pass with Python 3.x.
       
     2 
       
     3 --- suds-jurko-0.6/tests/test_suds.py.orig	2016-09-02 06:32:25.212848597 -0800
       
     4 +++ suds-jurko-0.6/tests/test_suds.py	2016-09-02 06:33:29.463753721 -0800
       
     5 @@ -1921,7 +1921,7 @@ xmlns:soap="http://schemas.xmlsoap.org/w
       
     6      assert binding_qname == ("dummy", "my-namespace")
       
     7      assert binding.__class__ is suds.wsdl.Binding
       
     8      assert len(binding.operations) == 1
       
     9 -    operation = binding.operations.values()[0]
       
    10 +    operation = list(binding.operations.values())[0]
       
    11      input = operation.soap.input.body
       
    12      output = operation.soap.output.body
       
    13      assert len(input.parts) == 1
       
    14 @@ -2060,7 +2060,7 @@ def _element_node_xml(name, min=None, ma
       
    15  
       
    16  def _first_from_dict(d):
       
    17      """Returns the first name/value pair from a dictionary or None if empty."""
       
    18 -    for x in d.items():
       
    19 +    for x in list(d.items()):
       
    20          return x[0], x[1]
       
    21  
       
    22