[Scipy-tickets] [SciPy] #1804: stats.test() has errors

SciPy Trac scipy-tickets@scipy....
Tue Jan 1 10:55:59 CST 2013


#1804: stats.test() has errors
-------------------------+--------------------------------------------------
 Reporter:  josefpktd    |       Owner:  rgommers   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  scipy.stats  |     Version:  0.11.0     
 Keywords:               |  
-------------------------+--------------------------------------------------
 ``>>> stats.test()`` has errors, while ``>nosetests scipy.stats`` finishes
 without errors or failures

 {{{
 >>> from scipy import stats
 >>> stats.test()
 Running unit tests for scipy.stats
 NumPy version 1.6.2
 NumPy is installed in E:\Josef\testing\tox\py27b\lib\site-
 packages\numpy-1.6.2-py2.7-win32.egg\numpy
 SciPy version 0.11.0rc2
 SciPy is installed in E:\Josef\testing\tox\py27b\lib\site-
 packages\scipy-0.11.0rc2-py2.7-win32.egg\scipy
 Python version 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32
 bit (Intel)]
 nose version 1.1.2
 .........................ES.EE.E.E...E..............EEEEEEE..EE..E...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
 ======================================================================
 ERROR: Failure: TypeError (super(type, obj): obj must be an instance or
 subtype of type)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "E:\Josef\testing\tox\py27b\lib\site-
 packages\nose-1.1.2-py2.7.egg\nose\loader.py", line 231,
 in generate
     for test in g():
   File "E:\Josef\testing\tox\py27b\lib\site-
 packages\scipy-0.11.0rc2-py2.7-win32.egg\scipy\stats\tests\test_discrete_basic.py",
 line 36, in test_discrete_basic
     rvs = distfn.rvs(size=2000,*arg)
   File "E:\Josef\testing\tox\py27b\lib\site-
 packages\scipy-0.11.0rc2-py2.7-win32.egg\scipy\stats\distributions.py",
 line 5858, in rvs
     return super(rv_discrete, self).rvs(*args, **kwargs)
 TypeError: super(type, obj): obj must be an instance or subtype of type

 <snip>
 ----------------------------------------------------------------------
 Ran 533 tests in 5.631s

 FAILED (SKIP=1, errors=16)
 <nose.result.TextTestResult run=533 errors=16 failures=0>

 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1804>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list