Skip to content

Instantly share code, notes, and snippets.

@mwcraig
Created February 14, 2013 07:03
Show Gist options
  • Save mwcraig/4951074 to your computer and use it in GitHub Desktop.
Save mwcraig/4951074 to your computer and use it in GitHub Desktop.
astropy_02rc1_test_failures
Enthought Python Distribution -- www.enthought.com
Python 2.7.3 |EPD 7.3-2 (32-bit)| (default, Apr 12 2012, 11:28:34)
Type "copyright", "credits" or "license" for more information.
IPython 0.13.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import astropy
In [2]: astropy.test()
========================================================================= test session starts ==========================================================================
platform darwin -- Python 2.7.3 -- pytest-2.3.3
Testing Astropy version 0.2rc1.
Running tests in /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy.
collected 3724 items
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/config/tests/test_configs.py .........
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/constants/tests/test_constant.py ....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/coordinates/tests/test_api.py ............
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/coordinates/tests/test_arrays.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/coordinates/tests/test_name_resolve.py ss
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/coordinates/tests/test_sphere_ang_dists.py ..............................x....x..............
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/coordinates/tests/test_transformations.py ...............
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk4.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk5.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/coordinates/tests/accuracy/test_galactic_fk4.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/coordinates/tests/accuracy/test_icrs_fk5.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/cosmology/tests/test_cosmology.py ...............
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/ascii/tests/test_cds_header_from_readme.py ...
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/ascii/tests/test_compressed.py .....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/ascii/tests/test_connect.py ................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/ascii/tests/test_fixedwidth.py ...........................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/ascii/tests/test_ipac_definitions.py ....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/ascii/tests/test_read.py .................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/ascii/tests/test_types.py ...
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/ascii/tests/test_write.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_checksum.py ...................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_core.py ......................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_diff.py .............................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_division.py .....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_groups.py .......
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_hdulist.py ......................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_header.py ...........................................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_image.py ...................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_nonstandard.py ..
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_structured.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_table.py ..........................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_uint.py ....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/fits/tests/test_util.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/misc/tests/test_hdf5.py ..................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/misc/tests/test_pickle_helpers.py ....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/tests/test_registry.py .........................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/votable/tests/converter_test.py ..................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/votable/tests/exception_test.py ..
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/votable/tests/table_test.py ...
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/votable/tests/tree_test.py ..
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/votable/tests/ucd_test.py .....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/votable/tests/util_test.py ...........
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/io/votable/tests/vo_test.py .................................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/nddata/convolution/tests/test_convolve.py ............................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/nddata/convolution/tests/test_convolve_fft.py ........................................................................................................................................................................................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/nddata/convolution/tests/test_convolve_kernels.py ................................................................................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/nddata/tests/test_flag_collection.py ..........
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/nddata/tests/test_nddata.py ...................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/sphinx/ext/tests/test_automodapi.py ......
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/sphinx/ext/tests/test_automodsumm.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/stats/tests/test_funcs.py ..
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/table/tests/test_column.py ....................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/table/tests/test_init_table.py ..........................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/table/tests/test_item_access.py ......................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/table/tests/test_masked.py ..........................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/table/tests/test_pprint.py ........................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/table/tests/test_row.py ................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/table/tests/test_table.py ..........................................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/test_logger.py ........sFF................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/tests/test_imports.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/tests/test_open_file_detection.py .
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/tests/test_run_tests.py ...
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/tests/test_skip_remote_data.py s
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/time/tests/test_basic.py .......................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/time/tests/test_delta.py ...
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/time/tests/test_guess.py ....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/units/tests/test_format.py ...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/units/tests/test_physical.py .....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/units/tests/test_quantity.py ...............................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/units/tests/test_units.py ...........................................................................................................................................................................................................................................................................................................................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/utils/tests/test_collections.py .....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/utils/tests/test_console.py .........
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/utils/tests/test_data.py .ssss........s..
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/utils/tests/test_gzip.py ss
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/utils/tests/test_misc.py .....
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/utils/tests/test_odict.py sssssssssssssssssssssssssssssssssssssssssss
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/utils/tests/test_xml.py ......
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/wcs/tests/test_pickle.py ......
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/wcs/tests/test_profiling.py ..................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/wcs/tests/test_wcs.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
../../Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/wcs/tests/test_wcsprm.py .........................................................................................
=============================================================================== FAILURES ===============================================================================
________________________________________________________________________ test_exception_logging ________________________________________________________________________
def test_exception_logging():
# Without exception logging
try:
with log.log_to_list() as log_list:
raise Exception("This is an Exception")
except Exception as exc:
sys.excepthook(*sys.exc_info())
assert exc.args[0] == "This is an Exception"
else:
assert False # exception should have been raised
assert len(log_list) == 0
# With exception logging
try:
log.enable_exception_logging()
with log.log_to_list() as log_list:
raise Exception("This is an Exception")
except Exception as exc:
sys.excepthook(*sys.exc_info())
assert exc.args[0] == "This is an Exception"
else:
assert False # exception should have been raised
> assert len(log_list) == 1
E assert 0 == 1
E + where 0 = len([])
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/test_logger.py:182: AssertionError
--------------------------------------------------------------------------- Captured stderr ----------------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/test_logger.py", line 164, in test_exception_logging
raise Exception("This is an Exception")
Exception: This is an Exception
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/test_logger.py", line 176, in test_exception_logging
raise Exception("This is an Exception")
Exception: This is an Exception
____________________________________________________________________ test_exception_logging_origin _____________________________________________________________________
def test_exception_logging_origin():
# The point here is to get an exception raised from another location
# and make sure the error's origin is reported correctly
from ..utils.collections import HomogeneousList
l = HomogeneousList(int)
try:
log.enable_exception_logging()
with log.log_to_list() as log_list:
l.append('foo')
except TypeError as exc:
sys.excepthook(*sys.exc_info())
assert exc.args[0].startswith(
"homogeneous list must contain only objects of type ")
else:
assert False
> assert len(log_list) == 1
E assert 0 == 1
E + where 0 = len([])
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/test_logger.py:217: AssertionError
--------------------------------------------------------------------------- Captured stderr ----------------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/tests/test_logger.py", line 210, in test_exception_logging_origin
l.append('foo')
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/utils/collections.py", line 42, in append
self._assert(x)
File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/astropy/utils/collections.py", line 30, in _assert
(self._types))
TypeError: homogeneous list must contain only objects of type '<type 'int'>'
==================================================== 2 failed, 3666 passed, 54 skipped, 2 xfailed in 187.99 seconds ===================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment