Author: tross
Date: Thu Dec 18 13:41:12 2014
New Revision: 1646457

URL: http://svn.apache.org/r1646457
Log:
NO-JIRA Fixed bug in system tests that was causing unhandled exceptions.

Modified:
    qpid/dispatch/trunk/tests/system_test.py

Modified: qpid/dispatch/trunk/tests/system_test.py
URL: 
http://svn.apache.org/viewvc/qpid/dispatch/trunk/tests/system_test.py?rev=1646457&r1=1646456&r2=1646457&view=diff
==============================================================================
--- qpid/dispatch/trunk/tests/system_test.py (original)
+++ qpid/dispatch/trunk/tests/system_test.py Thu Dec 18 13:41:12 2014
@@ -624,7 +624,7 @@ class TestCase(unittest.TestCase, Tester
     def assertIn(self, item, items):
         assert item in items, "%s not in %s" % (item, items)
 
-    if not getattr(unittest.TestCase, 'assertRegexpMatches'):
+    if not hasattr(unittest.TestCase, 'assertRegexpMatches'):
         def assertRegexpMatches(self, text, regexp, msg=None):
             """For python < 2.7: assert re.search(regexp, text)"""
             assert re.search(regexp, text), msg or "Can't find %r in '%s'" 
%(regexp, text)



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to