Skip to content

Instantly share code, notes, and snippets.

@bsipocz
Created July 2, 2014 19:50
Show Gist options
  • Save bsipocz/9f747d7cb62665e6e52f to your computer and use it in GitHub Desktop.
Save bsipocz/9f747d7cb62665e6e52f to your computer and use it in GitHub Desktop.
astropy v0.4rc1 test
=============================================================== test session starts ================================================================
platform darwin -- Python 2.7.5 -- pytest-2.5.1
Running tests with Astropy version 0.4rc1.
Running tests in /sw/lib/python2.7/site-packages/astropy.
Platform: Darwin-10.8.0-x86_64-i386-32bit
Executable: /sw/bin/python2.7
Full Python Version:
2.7.5 (default, Oct 7 2013, 17:12:32)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
encodings: sys: ascii, locale: UTF-8, filesystem: utf-8, unicode bits: 15
byteorder: little
float info: dig: 15, mant_dig: 15
Numpy: 1.8.1
Scipy: 0.13.2
Matplotlib: 1.3.1
h5py: not available
plugins: cache, pep8
collected 7478 items / 6 skipped
../../../sw/lib/python2.7/site-packages/astropy/config/tests/test_configs.py .............
../../../sw/lib/python2.7/site-packages/astropy/constants/tests/test_constant.py ..............
../../../sw/lib/python2.7/site-packages/astropy/convolution/tests/test_convolve.py ...............................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/convolution/tests/test_convolve_fft.py ...................................................................................................................................................................................................................................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/convolution/tests/test_convolve_kernels.py ..............................................................
../../../sw/lib/python2.7/site-packages/astropy/convolution/tests/test_discretize.py ...s...........s..........
../../../sw/lib/python2.7/site-packages/astropy/convolution/tests/test_kernel_class.py ..............................................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_angles.py ........................................................................
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_angular_separation.py ....
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_api_ape5.py ....s
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_arrays.py ..........................
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_distance.py .........
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_earth.py ........................
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_formatting.py ....................
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_frames.py ...................
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_matching.py ....
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_name_resolve.py ssssss
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_pickle.py ..
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_representation.py ...........................................................................
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_sky_coord.py .......................................................................................................................................................................................................................................................................................................................................................................................x.
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/test_transformations.py .............
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk4.py .
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk5.py .
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/accuracy/test_galactic_fk4.py .
../../../sw/lib/python2.7/site-packages/astropy/coordinates/tests/accuracy/test_icrs_fk5.py .
../../../sw/lib/python2.7/site-packages/astropy/cosmology/tests/test_cosmology.py ....................................
../../../sw/lib/python2.7/site-packages/astropy/io/ascii/tests/test_cds_header_from_readme.py ...
../../../sw/lib/python2.7/site-packages/astropy/io/ascii/tests/test_compressed.py .....
../../../sw/lib/python2.7/site-packages/astropy/io/ascii/tests/test_connect.py ........................
../../../sw/lib/python2.7/site-packages/astropy/io/ascii/tests/test_fixedwidth.py ........................................................
../../../sw/lib/python2.7/site-packages/astropy/io/ascii/tests/test_html.py .......s.......
../../../sw/lib/python2.7/site-packages/astropy/io/ascii/tests/test_ipac_definitions.py ......................................
../../../sw/lib/python2.7/site-packages/astropy/io/ascii/tests/test_read.py ............................................................................................
../../../sw/lib/python2.7/site-packages/astropy/io/ascii/tests/test_types.py ......
../../../sw/lib/python2.7/site-packages/astropy/io/ascii/tests/test_write.py ........
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_checksum.py ....................
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_connect.py .........................
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_core.py ..................................................
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_diff.py ...............................
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_division.py .....
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_groups.py .......
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_hdulist.py ........................................
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_header.py ...........................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_image.py ................................................
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_nonstandard.py ...
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_structured.py .
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_table.py ..............................................................
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_uint.py ........
../../../sw/lib/python2.7/site-packages/astropy/io/fits/tests/test_util.py .
../../../sw/lib/python2.7/site-packages/astropy/io/misc/tests/test_hdf5.py sssssssssssssssssssssssssssssssssssss
../../../sw/lib/python2.7/site-packages/astropy/io/misc/tests/test_pickle_helpers.py ....
../../../sw/lib/python2.7/site-packages/astropy/io/tests/test_registry.py ............................................................
../../../sw/lib/python2.7/site-packages/astropy/io/votable/tests/converter_test.py ............................................
../../../sw/lib/python2.7/site-packages/astropy/io/votable/tests/exception_test.py ..
../../../sw/lib/python2.7/site-packages/astropy/io/votable/tests/table_test.py ..............
../../../sw/lib/python2.7/site-packages/astropy/io/votable/tests/tree_test.py ...
../../../sw/lib/python2.7/site-packages/astropy/io/votable/tests/ucd_test.py ..........
../../../sw/lib/python2.7/site-packages/astropy/io/votable/tests/util_test.py ......................
../../../sw/lib/python2.7/site-packages/astropy/io/votable/tests/vo_test.py ..............................................................................................................................................................................................................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_constraints.py .....................
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_core.py .....
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_fitters.py ..................
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_functional_models.py ......
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_input.py ..............................................
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_models.py .....................................................................s....ss....................................s.ssssss.s...
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_parameters.py .....................................................
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_polynomial.py .................
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_projections.py ...................
../../../sw/lib/python2.7/site-packages/astropy/modeling/tests/test_rotations.py .....
../../../sw/lib/python2.7/site-packages/astropy/nddata/tests/test_flag_collection.py ....................
../../../sw/lib/python2.7/site-packages/astropy/nddata/tests/test_nddata.py ................................................................................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/sphinx/ext/tests/test_automodapi.py ......
../../../sw/lib/python2.7/site-packages/astropy/sphinx/ext/tests/test_automodsumm.py .
../../../sw/lib/python2.7/site-packages/astropy/stats/tests/test_funcs.py ...........
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_column.py ........................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_groups.py ........................................
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_init_table.py ..................................................................................................................................................................................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_item_access.py ........................................................
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_masked.py ................................................................
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_np_utils.py .
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_operations.py ................................................................
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_pickle.py ............
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_pprint.py ..................................................................................
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_row.py ..................................................
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_subclass.py ..
../../../sw/lib/python2.7/site-packages/astropy/table/tests/test_table.py ....................................................................................................................................................................................................................................................................................x..........................................................................................................................................................................................................................................................................................................x......................
../../../sw/lib/python2.7/site-packages/astropy/tests/test_logger.py ........sxx................
../../../sw/lib/python2.7/site-packages/astropy/tests/tests/test_imports.py F.
../../../sw/lib/python2.7/site-packages/astropy/tests/tests/test_open_file_detection.py .
../../../sw/lib/python2.7/site-packages/astropy/tests/tests/test_run_tests.py ..........
../../../sw/lib/python2.7/site-packages/astropy/tests/tests/test_skip_remote_data.py s
../../../sw/lib/python2.7/site-packages/astropy/tests/tests/test_socketblocker.py ...
../../../sw/lib/python2.7/site-packages/astropy/time/tests/test_basic.py ......................................................................
../../../sw/lib/python2.7/site-packages/astropy/time/tests/test_comparisons.py ...
../../../sw/lib/python2.7/site-packages/astropy/time/tests/test_delta.py ................................................................................
../../../sw/lib/python2.7/site-packages/astropy/time/tests/test_guess.py ....
../../../sw/lib/python2.7/site-packages/astropy/time/tests/test_pickle.py .
../../../sw/lib/python2.7/site-packages/astropy/time/tests/test_precision.py .......x.
../../../sw/lib/python2.7/site-packages/astropy/time/tests/test_quantity_interaction.py ...........
../../../sw/lib/python2.7/site-packages/astropy/time/tests/test_sidereal.py ...................
../../../sw/lib/python2.7/site-packages/astropy/time/tests/test_ut1.py ...s
../../../sw/lib/python2.7/site-packages/astropy/units/tests/test_equivalencies.py ..................................................
../../../sw/lib/python2.7/site-packages/astropy/units/tests/test_format.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/units/tests/test_physical.py ....................
../../../sw/lib/python2.7/site-packages/astropy/units/tests/test_quantity.py ................................................................
../../../sw/lib/python2.7/site-packages/astropy/units/tests/test_quantity_array_methods.py ........x..............x..........x.x............
../../../sw/lib/python2.7/site-packages/astropy/units/tests/test_quantity_non_ufuncs.py xx
../../../sw/lib/python2.7/site-packages/astropy/units/tests/test_quantity_ufuncs.py ................................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/units/tests/test_units.py ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/utils/iers/tests/test_iers.py .s
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_collections.py .....
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_compat.py .
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_console.py ........................................
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_data.py .sssss.........s..s..sssss.........s..s.
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_gzip.py ss
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_metadata.py ..............
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_misc.py ......s..
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_odict.py sssssssssssssssssssssssssssssssssssssssssss
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_state.py ..
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_timer.py .
../../../sw/lib/python2.7/site-packages/astropy/utils/tests/test_xml.py ........
../../../sw/lib/python2.7/site-packages/astropy/vo/client/tests/test_conesearch.py sssssssssssss...x.
../../../sw/lib/python2.7/site-packages/astropy/vo/client/tests/test_vos_catalog.py ..............s
../../../sw/lib/python2.7/site-packages/astropy/vo/samp/tests/test_client.py ...
../../../sw/lib/python2.7/site-packages/astropy/vo/samp/tests/test_errors.py ...
../../../sw/lib/python2.7/site-packages/astropy/vo/samp/tests/test_hub.py ..
../../../sw/lib/python2.7/site-packages/astropy/vo/samp/tests/test_hub_proxy.py .....
../../../sw/lib/python2.7/site-packages/astropy/vo/samp/tests/test_hub_script.py .
../../../sw/lib/python2.7/site-packages/astropy/vo/samp/tests/test_standard_profile.py .XX
../../../sw/lib/python2.7/site-packages/astropy/vo/samp/tests/test_web_profile.py X.
../../../sw/lib/python2.7/site-packages/astropy/vo/validator/tests/test_inpect.py ....
../../../sw/lib/python2.7/site-packages/astropy/vo/validator/tests/test_validate.py sss
../../../sw/lib/python2.7/site-packages/astropy/wcs/tests/test_pickle.py ......
../../../sw/lib/python2.7/site-packages/astropy/wcs/tests/test_profiling.py ..................................
../../../sw/lib/python2.7/site-packages/astropy/wcs/tests/test_utils.py .........
../../../sw/lib/python2.7/site-packages/astropy/wcs/tests/test_wcs.py ..................................................................................................................................
../../../sw/lib/python2.7/site-packages/astropy/wcs/tests/test_wcsprm.py ...........................................................................................x....
../../../sw/lib/python2.7/site-packages/astropy/wcs/tests/extension/test_extension.py F
===================================================================== FAILURES =====================================================================
___________________________________________________________________ test_imports ___________________________________________________________________
def test_imports():
"""
This just imports all modules in astropy, making sure they don't have any
dependencies that sneak through
"""
from ...utils import find_current_module
pkgornm = find_current_module(1).__name__.split('.')[0]
if isinstance(pkgornm, six.string_types):
> package = pkgutil.get_loader(pkgornm).load_module(pkgornm)
/sw/lib/python2.7/site-packages/astropy/tests/tests/test_imports.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
module_or_name = <module 'astropy' from '/sw/lib/python2.7/site-packages/astropy/__init__.pyc'>
def get_loader(module_or_name):
"""Get a PEP 302 "loader" object for module_or_name
If the module or package is accessible via the normal import
mechanism, a wrapper around the relevant part of that machinery
is returned. Returns None if the module cannot be found or imported.
If the named module is not already imported, its containing package
(if any) is imported, in order to establish the package __path__.
This function uses iter_importers(), and is thus subject to the same
limitations regarding platform-specific special import locations such
as the Windows registry.
"""
if module_or_name in sys.modules:
module_or_name = sys.modules[module_or_name]
if isinstance(module_or_name, ModuleType):
module = module_or_name
loader = getattr(module, '__loader__', None)
if loader is not None:
return loader
fullname = module.__name__
else:
fullname = module_or_name
> return find_loader(fullname)
/sw/lib/python2.7/pkgutil.py:464:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
fullname = 'astropy'
def find_loader(fullname):
"""Find a PEP 302 "loader" object for fullname
If fullname contains dots, path must be the containing package's __path__.
Returns None if the module cannot be found or imported. This function uses
iter_importers(), and is thus subject to the same limitations regarding
platform-specific special import locations such as the Windows registry.
"""
for importer in iter_importers(fullname):
> loader = importer.find_module(fullname)
E TypeError: find_module() takes exactly 3 arguments (2 given)
/sw/lib/python2.7/pkgutil.py:475: TypeError
______________________________________________________________ test_wcsapi_extension _______________________________________________________________
tmpdir = local('/private/var/folders/Om/Om4O5pSrFB8Sdxf56Ao-vk+++TI/-Tmp-/pytest-10/test_wcsapi_extension0')
def test_wcsapi_extension(tmpdir):
# Test that we can build a simple C extension with the astropy.wcs C API
setup_path = os.path.dirname(__file__)
astropy_path = os.path.abspath(
os.path.join(setup_path, '..', '..', '..', '..'))
env = os.environ.copy()
paths = [str(tmpdir), astropy_path]
if env.get('PYTHONPATH'):
paths.append(env.get('PYTHONPATH'))
env[str('PYTHONPATH')] = str(os.pathsep.join(paths))
# Build the extension
# This used to use subprocess.check_call, but on Python 3.4 there was
# a mysterious Heisenbug causing this to fail with a non-zero exit code
# *unless* the output is redirected. This bug also did not occur in an
# interactive session, so it likely had something to do with pytest's
# output capture
with open(os.devnull, 'wb') as devnull:
p = subprocess.Popen([sys.executable, 'setup.py', 'install',
'--install-lib={0}'.format(tmpdir),
astropy_path], cwd=setup_path, env=env,
stdout=devnull, stderr=devnull)
retcode = p.wait()
> assert retcode == 0
E assert 1 == 0
/sw/lib/python2.7/site-packages/astropy/wcs/tests/extension/test_extension.py:36: AssertionError
=================================== 2 failed, 7320 passed, 145 skipped, 14 xfailed, 3 xpassed in 629.11 seconds ====================================
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment