[Scipy-svn] r6494 - trunk/scipy/stats/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Wed Jun 9 00:24:45 EDT 2010
Author: oliphant
Date: 2010-06-08 23:24:45 -0500 (Tue, 08 Jun 2010)
New Revision: 6494
Modified:
trunk/scipy/stats/tests/test_distributions.py
Log:
Fix syntax error in test_distributions.py for Python < 2.6
Modified: trunk/scipy/stats/tests/test_distributions.py
===================================================================
--- trunk/scipy/stats/tests/test_distributions.py 2010-06-07 19:01:34 UTC (rev 6493)
+++ trunk/scipy/stats/tests/test_distributions.py 2010-06-09 04:24:45 UTC (rev 6494)
@@ -388,7 +388,7 @@
if dist in self.skip:
continue
distfunc = getattr(stats, dist)
- res = distfunc.rvs(*args, size=200)
+ res = distfunc.rvs(*args, **{'size':200})
vals = distfunc.fit(res)
if dist in ['erlang', 'frechet']:
assert(len(vals)==len(args))
@@ -402,7 +402,7 @@
if dist in self.skip + ['erlang', 'frechet', 'beta']:
continue
distfunc = getattr(stats, dist)
- res = distfunc.rvs(*args, size=200)
+ res = distfunc.rvs(*args, **{'size':200})
vals = distfunc.fit(res,floc=0)
vals2 = distfunc.fit(res,fscale=1)
assert(len(vals) == 2+len(args))
More information about the Scipy-svn
mailing list