Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tomr-stargazer/b2271fda034533d084f6db94f163fdc9 to your computer and use it in GitHub Desktop.
Save tomr-stargazer/b2271fda034533d084f6db94f163fdc9 to your computer and use it in GitHub Desktop.
test error
nosetests --version
nosetests version 1.3.7
python -c 'import matplotlib; print(matplotlib.__version__)'
2.0.2
python --version
Python 3.6.0 :: Anaconda custom (x86_64)
nosetests corner
EFFFFFFFFFFFFF......
======================================================================
ERROR: Failure: ImportError (No module named pandas)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/tsrice/Documents/Code/corner.py/corner/tests/test_corner.py", line 6, in <module>
import pandas as pd
ImportError: No module named pandas
======================================================================
FAIL: corner.tests.test_hist2d.test_basic.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/basic.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/basic-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/basic.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/basic-expected.png (RMS 5.315)
======================================================================
FAIL: corner.tests.test_hist2d.test_color.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/color.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/color-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/color.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/color-expected.png (RMS 5.315)
======================================================================
FAIL: corner.tests.test_hist2d.test_cutoff.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/cutoff.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/cutoff-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/cutoff.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/cutoff-expected.png (RMS 6.680)
======================================================================
FAIL: corner.tests.test_hist2d.test_cutoff2.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/cutoff2.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/cutoff2-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/cutoff2.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/cutoff2-expected.png (RMS 7.305)
======================================================================
FAIL: corner.tests.test_hist2d.test_filled.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/filled.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/filled-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/filled.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/filled-expected.png (RMS 5.315)
======================================================================
FAIL: corner.tests.test_hist2d.test_levels1.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/levels1.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/levels1-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/levels1.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/levels1-expected.png (RMS 5.315)
======================================================================
FAIL: corner.tests.test_hist2d.test_levels2.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/levels2.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/levels2-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/levels2.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/levels2-expected.png (RMS 5.315)
======================================================================
FAIL: corner.tests.test_hist2d.test_lowN.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowN.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowN-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowN.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowN-expected.png (RMS 6.601)
-------------------- >> begin captured logging << --------------------
root: WARNING: Too few points to create valid contours
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: corner.tests.test_hist2d.test_lowNfilled.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowNfilled.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowNfilled-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowNfilled.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowNfilled-expected.png (RMS 6.601)
-------------------- >> begin captured logging << --------------------
root: WARNING: Too few points to create valid contours
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: corner.tests.test_hist2d.test_lowNnofill.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowNnofill.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowNnofill-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowNnofill.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/lowNnofill-expected.png (RMS 6.601)
-------------------- >> begin captured logging << --------------------
root: WARNING: Too few points to create valid contours
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: corner.tests.test_hist2d.test_philsplot.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/philsplot.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/philsplot-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/philsplot.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/philsplot-expected.png (RMS 5.315)
======================================================================
FAIL: corner.tests.test_hist2d.test_smooth1.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/smooth1.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/smooth1-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/smooth1.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/smooth1-expected.png (RMS 5.315)
======================================================================
FAIL: corner.tests.test_hist2d.test_smooth2.test(1, u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/smooth2.png', u'/Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/smooth2-expected.png')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 58, in failer
result = f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 259, in do_test
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/smooth2.png vs. /Users/tsrice/Documents/Code/corner.py/result_images/test_hist2d/smooth2-expected.png (RMS 5.315)
----------------------------------------------------------------------
Ran 20 tests in 5.015s
FAILED (errors=1, failures=13)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment