[ 
https://issues.apache.org/jira/browse/PROTON-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14345079#comment-14345079
 ] 

ASF subversion and git services commented on PROTON-831:
--------------------------------------------------------

Commit 8ea52ddd32e340eb4d1125e30bc3b1208527f17a in qpid-proton's branch 
refs/heads/master from [~gsim]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=8ea52dd ]

PROTON-831: minor tweak to accomodate older python; patch from Irina Boverman.


> proton_tests.utils.SyncRequestResponseTest.test_request_response test fails 
> on RHEL 5
> -------------------------------------------------------------------------------------
>
>                 Key: PROTON-831
>                 URL: https://issues.apache.org/jira/browse/PROTON-831
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.9
>         Environment: RHEL 5
>            Reporter: Irina Boverman
>            Assignee: Gordon Sim
>            Priority: Minor
>             Fix For: 0.9
>
>         Attachments: PROTON-831.patch
>
>
> proton_tests.utils.SyncRequestResponseTest.test_request_response ........ fail
> Error during test:  Traceback (most recent call last):
>     File 
> "/var/lib/jenkins/workspace/proton/label/rhel5-64/tests/python/proton-test", 
> line 355, in run
>       phase()
>     File 
> "/var/lib/jenkins/workspace/proton/label/rhel5-64/tests/python/proton_tests/utils.py",
>  line 92, in test_request_response
>       test("foo")         # Simple request/resposne
>     File 
> "/var/lib/jenkins/workspace/proton/label/rhel5-64/tests/python/proton_tests/utils.py",
>  line 82, in test
>       response = client.call(Message(address=address, body=body))
>     File 
> "/var/lib/jenkins/workspace/proton/label/rhel5-64/proton-c/bindings/python/proton/utils.py",
>  line 315, in call
>       self.sender.send(request)
>     File 
> "/var/lib/jenkins/workspace/proton/label/rhel5-64/proton-c/bindings/python/proton/utils.py",
>  line 76, in send
>       delivery = self.link.send(msg)
>     File 
> "/var/lib/jenkins/workspace/proton/label/rhel5-64/proton-c/bindings/python/proton/__init__.py",
>  line 2845, in send
>       return obj.send(self, tag=tag)
>     File 
> "/var/lib/jenkins/workspace/proton/label/rhel5-64/proton-c/bindings/python/proton/__init__.py",
>  line 1098, in send
>       dlv = sender.delivery(tag or sender.delivery_tag())
>     File 
> "/var/lib/jenkins/workspace/proton/label/rhel5-64/proton-c/bindings/python/proton/__init__.py",
>  line 2858, in delivery_tag
>       return next(self.tag_generator)
>   NameError: global name 'next' is not defined
> Suggested fix (contributed by Ted Ross): 
> Seems the "next" builtin function was introduced in Python 2.6. Perhaps
> this should be changed to:
>      return self.tag_generator.next()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to