summaryrefslogtreecommitdiff
blob: 681b320578156692990530df52176e1a4fff0ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Lib/sandbox/montecarlo/tests/test_dictsampler.py.orig	2007-06-06 14:25:47.000000000 +0100
+++ Lib/sandbox/montecarlo/tests/test_dictsampler.py	2007-06-06 14:26:02.000000000 +0100
@@ -37,7 +37,7 @@
         #import pdb
         #pdb.set_trace()
         s = sampler.sample(n)
-        assert sum(s[i]=='b' for i in range(n),axis=0)*1./n > 0.75
+        assert sum((s[i]=='b' for i in range(n)),axis=0)*1./n > 0.75
 
         #lam = 10.0
         #n = 35