[Scipy-tickets] [SciPy] #1511: OS X Lion: FAIL: Some very simple tests for chi2_contingency.

SciPy Trac scipy-tickets@scipy....
Tue Sep 6 07:18:28 CDT 2011


#1511: OS X Lion: FAIL: Some very simple tests for chi2_contingency.
-------------------------------------+--------------------------------------
 Reporter:  samuel                   |       Owner:  somebody
     Type:  defect                   |      Status:  new     
 Priority:  normal                   |   Milestone:  0.10.0  
Component:  scipy.stats              |     Version:  devel   
 Keywords:  tests, lion, osx, stats  |  
-------------------------------------+--------------------------------------
 On OS X Lion 10.7.1 the chi2_contingency test fails.
 I used python 2.7.2 built by homebrew (with the new default llvm backend).
 NumPy and SciPy were compiled with gcc (as suggest on scipy.org):
    export CXX=g++-4.2
    export CC=gcc-4.2
    export FFLAGS=-ff2c
 >>>
   Running unit tests for scipy
   NumPy version 1.6.2.dev-7438d52
   NumPy is installed in
 /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy
   SciPy version 0.10.0.dev

  [...]

 ======================================================================
 FAIL: Some very simple tests for chi2_contingency.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File
 "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/stats/tests/test_contingency.py", line 67, in
 test_chi2_contingency_trival
     assert_equal(p, 1.0)
   File
 "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 300, in assert_equal
     raise AssertionError(msg)
 AssertionError:
 Items are not equal:
  ACTUAL: nan
  DESIRED: 1.0

 ----------------------------------------------------------------------
 Ran 5622 tests in 53.072s

 FAILED (KNOWNFAIL=12, SKIP=42, failures=1)

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


More information about the Scipy-tickets mailing list