qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1072928 - /qpid/trunk/qpid/cpp/src/tests/queue_flow_limit_tests.py
Date Mon, 21 Feb 2011 11:19:55 GMT
Author: gsim
Date: Mon Feb 21 11:19:54 2011
New Revision: 1072928

URL: http://svn.apache.org/viewvc?rev=1072928&view=rev
Log:
QPID-2935: Handle missing assertGreater for older versions of python

Modified:
    qpid/trunk/qpid/cpp/src/tests/queue_flow_limit_tests.py

Modified: qpid/trunk/qpid/cpp/src/tests/queue_flow_limit_tests.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/queue_flow_limit_tests.py?rev=1072928&r1=1072927&r2=1072928&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/queue_flow_limit_tests.py (original)
+++ qpid/trunk/qpid/cpp/src/tests/queue_flow_limit_tests.py Mon Feb 21 11:19:54 2011
@@ -30,6 +30,12 @@ from os import environ
 
 class QueueFlowLimitTests(TestBase010):
 
+    def __getattr__(self, name):
+        if name == "assertGreater":
+            return lambda a, b: self.assertTrue(a > b)
+        else:
+            raise AttributeError
+
     def _create_queue(self, name,
                      stop_count=None, resume_count=None,
                      stop_size=None, resume_size=None):



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message