[rhmessaging-commits] rhmessaging commits: r2346 - mgmt/trunk/cumin/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Aug 21 17:47:23 EDT 2008


Author: eallen
Date: 2008-08-21 17:47:23 -0400 (Thu, 21 Aug 2008)
New Revision: 2346

Modified:
   mgmt/trunk/cumin/python/wooly/devel.py
Log:
Create new xml parser each call to Parse

Modified: mgmt/trunk/cumin/python/wooly/devel.py
===================================================================
--- mgmt/trunk/cumin/python/wooly/devel.py	2008-08-21 21:42:18 UTC (rev 2345)
+++ mgmt/trunk/cumin/python/wooly/devel.py	2008-08-21 21:47:23 UTC (rev 2346)
@@ -8,7 +8,7 @@
 class BenchmarkHarness(object):
     def __init__(self, app, check_xml=False):
         self.app = app
-        self.parser = None
+        self.check_xml = check_xml
 
         if check_xml:
             self.parser = ParserCreate()
@@ -36,9 +36,10 @@
 
             html = page.render(session)
 
-            if self.parser:
+            if self.check_xml:
                 try:
-                    self.parser.Parse(html)
+                    parser = ParserCreate()
+                    parser.Parse(html)
                 except Exception, e:
                     print
 




More information about the rhmessaging-commits mailing list