[Biopython-dev] [Bug 2672] New: test_lowess and test_docstrings fail to check if numpy is installed

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Nov 18 15:44:29 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2672

           Summary: test_lowess and test_docstrings fail to check if numpy
                    is installed
           Product: Biopython
           Version: Not Applicable
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Unit Tests
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: bsouthey at gmail.com


I used the cvs version with a version Python 2.5 that does not have numpy
installed.

Both test_lowess and test_docstring need to have checks for the presence of
Numpy like other tests that require NumPy. These tests should also be skipped
with messages like:
test_kNN ... skipping. Install NumPy if you want to use Bio.kNN. 



======================================================================
ERROR: test_docstrings
----------------------------------------------------------------------
Traceback (most recent call last):
  File "run_tests.py", line 125, in runTest
    self.runSafeTest()
  File "run_tests.py", line 138, in runSafeTest
    cur_test = __import__(self.test_name)
  File "test_docstrings.py", line 18, in <module>
    import Bio.Statistics.lowess
  File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.5/Bio/Statistics/lowess.py",
line 23, in <module>
    import numpy
ImportError: No module named numpy

======================================================================
ERROR: test_lowess
----------------------------------------------------------------------
Traceback (most recent call last):
  File "run_tests.py", line 125, in runTest
    self.runSafeTest()
  File "run_tests.py", line 138, in runSafeTest
    cur_test = __import__(self.test_name)
  File "test_lowess.py", line 1, in <module>
    from Bio.Statistics.lowess import lowess
  File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.5/Bio/Statistics/lowess.py",
line 23, in <module>
    import numpy
ImportError: No module named numpy


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list