Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-3063

Python Client messaging/endpoints.py Connection Class: def check_closed(self): method crashes when called.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.9
    • Component/s: Python Client
    • Labels:
      None
    • Environment:

      RHEL 5.0 Python2.7

      Description

      When calling the Connection Classes .check_closed method an exception is raised:

      Traceback (most recent call last):
      File "<test>/Harness_Test.py", line 24, in test_create_connection
      self.assertFalse(connection.check_closed() )
      File "/usr/local/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 200, in check_closed
      if self.closed:
      AttributeError: Connection instance has no attribute 'closed'

      The fix is pretty simple, get rid of the method, or add a self.closed flag to indicate failure...

        Attachments

          Activity

            People

            • Assignee:
              gsim Gordon Sim
              Reporter:
              nick.capito Nick Capito
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified