[Numpy-discussion] nose changes checked in

Charles R Harris charlesr.harris@gmail....
Mon Jun 16 20:04:23 CDT 2008


On Mon, Jun 16, 2008 at 6:28 PM, Alan McIntyre <alan.mcintyre@gmail.com>
wrote:

> Hi all,
>
> I just checked in the switch to use nose to run unit tests.  Please
> let me know if you experience any difficulties as a result.
>

Did you add any documentation to the readme? Any particular version
dependency for Nose?

Hmm, plenty of output, 1 failure, and it looks like a future warning in
histogram needs to be disabled.

In [1]: numpy.test()
Not implemented: Defined_Binary_Op
Not implemented: Defined_Binary_Op
Defined_Operator not defined used by Generic_Spec
Needs match implementation: Allocate_Stmt
Needs match implementation: Associate_Construct
Needs match implementation: Backspace_Stmt
Needs match implementation: Block_Data
Needs match implementation: Case_Construct
Needs match implementation: Case_Selector
Needs match implementation: Case_Stmt
Needs match implementation: Control_Edit_Desc
Needs match implementation: Data_Component_Def_Stmt
Needs match implementation: Data_Implied_Do
Needs match implementation: Data_Stmt
Needs match implementation: Data_Stmt_Set
Needs match implementation: Deallocate_Stmt
Needs match implementation: Derived_Type_Def
Needs match implementation: Endfile_Stmt
Needs match implementation: Entry_Stmt
Needs match implementation: Enum_Def
Needs match implementation: Flush_Stmt
Needs match implementation: Forall_Construct
Needs match implementation: Forall_Header
Needs match implementation: Forall_Triplet_Spec
Needs match implementation: Format_Item
Needs match implementation: Function_Stmt
Needs match implementation: Generic_Binding
Needs match implementation: Generic_Spec
Needs match implementation: Implicit_Part
Needs match implementation: Inquire_Stmt
Needs match implementation: Interface_Block
Needs match implementation: Interface_Body
Needs match implementation: Interface_Stmt
Needs match implementation: Internal_Subprogram_Part
Needs match implementation: Io_Implied_Do
Needs match implementation: Io_Implied_Do_Control
Needs match implementation: Main_Program
Needs match implementation: Module
Needs match implementation: Module_Subprogram_Part
Needs match implementation: Namelist_Stmt
Needs match implementation: Pointer_Assignment_Stmt
Needs match implementation: Position_Edit_Desc
Needs match implementation: Proc_Attr_Spec
Needs match implementation: Proc_Component_Def_Stmt
Needs match implementation: Procedure_Declaration_Stmt
Needs match implementation: Procedure_Stmt
Needs match implementation: Read_Stmt
Needs match implementation: Rewind_Stmt
Needs match implementation: Select_Type_Construct
Needs match implementation: Select_Type_Stmt
Needs match implementation: Specific_Binding
Needs match implementation: Target_Stmt
Needs match implementation: Type_Bound_Procedure_Part
Needs match implementation: Where_Construct
-----
Nof match implementation needs: 51 out of 224
Nof tests needs: 224 out of 224
Total number of classes: 529
-----
...................................................................................................................................................................................................................................................................../usr/lib/python2.5/site-packages/numpy/lib/function_base.py:166:
FutureWarning:
        The semantics of histogram will be modified in
        release 1.2 to improve outlier handling. The new behavior can be
        obtained using new=True. Note that the new version accepts/returns
        the bin edges instead of the left bin edges.
        Please read the docstring for more information.
  Please read the docstring for more information.""", FutureWarning)
/usr/lib/python2.5/site-packages/numpy/lib/function_base.py:193:
FutureWarning:
            The semantic for bins will change in version 1.2.
            The bins will become the bin edges, instead of the left bin
edges.

  """, FutureWarning)
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E......................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: Failure: <type 'exceptions.ImportError'>(No module named test_linalg)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/nose/loader.py", line 361, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.5/site-packages/nose/importer.py", line 39, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.5/site-packages/nose/importer.py", line 71, in
importFromDir
    fh, filename, desc = find_module(part, path)
ImportError: No module named test_linalg

----------------------------------------------------------------------
Ran 1659 tests in 8.347s

FAILED (errors=1)


Looks slower than the old testing framework, but not enough to matter.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080616/987e880d/attachment-0001.html 


More information about the Numpy-discussion mailing list