Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-831

proton_tests.utils.SyncRequestResponseTest.test_request_response test fails on RHEL 5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • proton-0.9
    • proton-0.9
    • proton-c
    • None
    • RHEL 5

    Description

      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()

      Attachments

        1. PROTON-831.patch
          0.5 kB
          Irina Boverman

        Activity

          People

            gsim Gordon Sim
            iboverma Irina Boverman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: