test_rl_accel.py: fix rc consistency checks heisenbug
authorrgbecker
Fri, 09 Jun 2006 14:55:44 +0000
changeset 2650 e9f27a50eadf
parent 2649 07513253980c
child 2651 1b97b8171b6a
test_rl_accel.py: fix rc consistency checks heisenbug
reportlab/test/test_rl_accel.py
--- a/reportlab/test/test_rl_accel.py	Fri Jun 09 07:45:10 2006 +0000
+++ b/reportlab/test/test_rl_accel.py	Fri Jun 09 14:55:44 2006 +0000
@@ -23,11 +23,11 @@
     else:
         L = L.copy()
     G0 = G0.copy()
-    return [getrefcount(eval(x,L,G0))-1 for x in defns.split()]
+    return ' '.join([str(getrefcount(eval(x,L,G0))-1) for x in defns.split()])
 
 def checkrc(defns,rcv0):
     rcv1 = getrc(defns,2)
-    return ' '.join(["%s %d-->%d" % (x,v,w) for x,v,w in zip(defns.split(),rcv0,rcv1) if v!=w])
+    return ' '.join(["%s %s-->%s" % (x,v,w) for x,v,w in zip(defns.split(),rcv0.split(),rcv1.split()) if v!=w])
 
 class RlAccelTestCase(unittest.TestCase):