[Numpy-discussion] test_financial.py

Nils Wagner nwagner@iam.uni-stuttgart...
Tue Apr 8 14:03:45 CDT 2008


Hi all,

several test failures are present in svn

File 
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", 
line 4, in test_financial
Failed example:
     rate(10,0,-3500,10000)
Exception raised:
     Traceback (most recent call last):
       File "/usr/lib/python2.4/doctest.py", line 1243, in 
__run
         compileflags, 1) in test.globs
       File "<doctest test_financial[0]>", line 1, in ?
         rate(10,0,-3500,10000)
     NameError: name 'rate' is not defined
**********************************************************************
File 
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", 
line 7, in test_financial
Failed example:
     irr([-150000, 15000, 25000, 35000, 45000, 60000])
Exception raised:
     Traceback (most recent call last):
       File "/usr/lib/python2.4/doctest.py", line 1243, in 
__run
         compileflags, 1) in test.globs
       File "<doctest test_financial[1]>", line 1, in ?
         irr([-150000, 15000, 25000, 35000, 45000, 60000])
     NameError: name 'irr' is not defined
**********************************************************************
File 
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", 
line 10, in test_financial
Failed example:
     pv(0.07,20,12000,0)
Exception raised:
     Traceback (most recent call last):
       File "/usr/lib/python2.4/doctest.py", line 1243, in 
__run
         compileflags, 1) in test.globs
       File "<doctest test_financial[2]>", line 1, in ?
         pv(0.07,20,12000,0)
     NameError: name 'pv' is not defined
**********************************************************************
File 
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", 
line 13, in test_financial
Failed example:
     fv(0.075, 20, -2000,0,0)
Exception raised:
     Traceback (most recent call last):
       File "/usr/lib/python2.4/doctest.py", line 1243, in 
__run
         compileflags, 1) in test.globs
       File "<doctest test_financial[3]>", line 1, in ?
         fv(0.075, 20, -2000,0,0)
     NameError: name 'fv' is not defined
**********************************************************************
File 
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", 
line 16, in test_financial
Failed example:
     pmt(0.08/12,5*12,15000)
Exception raised:
     Traceback (most recent call last):
       File "/usr/lib/python2.4/doctest.py", line 1243, in 
__run
         compileflags, 1) in test.globs
       File "<doctest test_financial[4]>", line 1, in ?
         pmt(0.08/12,5*12,15000)
     NameError: name 'pmt' is not defined
**********************************************************************
File 
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", 
line 19, in test_financial
Failed example:
     nper(0.075,-2000,0,100000.)
Exception raised:
     Traceback (most recent call last):
       File "/usr/lib/python2.4/doctest.py", line 1243, in 
__run
         compileflags, 1) in test.globs
       File "<doctest test_financial[5]>", line 1, in ?
         nper(0.075,-2000,0,100000.)
     NameError: name 'nper' is not defined
**********************************************************************
File 
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", 
line 22, in test_financial
Failed example:
     npv(0.05,[-15000,1500,2500,3500,4500,6000])
Exception raised:
     Traceback (most recent call last):
       File "/usr/lib/python2.4/doctest.py", line 1243, in 
__run
         compileflags, 1) in test.globs
       File "<doctest test_financial[6]>", line 1, in ?
         npv(0.05,[-15000,1500,2500,3500,4500,6000])
     NameError: name 'npv' is not defined
**********************************************************************
File 
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", 
line 25, in test_financial
Failed example:
     mirr([-4500,-800,800,800,600,600,800,800,700,3000],0.08,0.055)
Exception raised:
     Traceback (most recent call last):
       File "/usr/lib/python2.4/doctest.py", line 1243, in 
__run
         compileflags, 1) in test.globs
       File "<doctest test_financial[7]>", line 1, in ?
         mirr([-4500,-800,800,800,600,600,800,800,700,3000],0.08,0.055)
     NameError: name 'mirr' is not defined
**********************************************************************
File 
"/usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py", 
line 28, in test_financial
Failed example:
     mirr([-120000,39000,30000,21000,37000,46000],0.10,0.12)
Exception raised:
     Traceback (most recent call last):
       File "/usr/lib/python2.4/doctest.py", line 1243, in 
__run
         compileflags, 1) in test.globs
       File "<doctest test_financial[8]>", line 1, in ?
         mirr([-120000,39000,30000,21000,37000,46000],0.10,0.12)
     NameError: name 'mirr' is not defined

Nils


More information about the Numpy-discussion mailing list