Skip to content

Instantly share code, notes, and snippets.

@adl1995
Created June 20, 2017 07:34
Show Gist options
  • Save adl1995/664ef5e462da8a53b3d066f90526f643 to your computer and use it in GitHub Desktop.
Save adl1995/664ef5e462da8a53b3d066f90526f643 to your computer and use it in GitHub Desktop.
running test
running build
running build_py
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/hips
copying hips/conftest.py -> build/lib.linux-x86_64-3.4/hips
copying hips/version.py -> build/lib.linux-x86_64-3.4/hips
copying hips/_astropy_init.py -> build/lib.linux-x86_64-3.4/hips
copying hips/__init__.py -> build/lib.linux-x86_64-3.4/hips
creating build/lib.linux-x86_64-3.4/hips/draw
copying hips/draw/simple.py -> build/lib.linux-x86_64-3.4/hips/draw
copying hips/draw/__init__.py -> build/lib.linux-x86_64-3.4/hips/draw
creating build/lib.linux-x86_64-3.4/hips/extern
copying hips/extern/__init__.py -> build/lib.linux-x86_64-3.4/hips/extern
creating build/lib.linux-x86_64-3.4/hips/tests
copying hips/tests/setup_package.py -> build/lib.linux-x86_64-3.4/hips/tests
copying hips/tests/__init__.py -> build/lib.linux-x86_64-3.4/hips/tests
creating build/lib.linux-x86_64-3.4/hips/tiles
copying hips/tiles/description.py -> build/lib.linux-x86_64-3.4/hips/tiles
copying hips/tiles/tile.py -> build/lib.linux-x86_64-3.4/hips/tiles
copying hips/tiles/__init__.py -> build/lib.linux-x86_64-3.4/hips/tiles
creating build/lib.linux-x86_64-3.4/hips/utils
copying hips/utils/healpix.py -> build/lib.linux-x86_64-3.4/hips/utils
copying hips/utils/__init__.py -> build/lib.linux-x86_64-3.4/hips/utils
creating build/lib.linux-x86_64-3.4/hips/draw/tests
copying hips/draw/tests/test_simple.py -> build/lib.linux-x86_64-3.4/hips/draw/tests
copying hips/draw/tests/__init__.py -> build/lib.linux-x86_64-3.4/hips/draw/tests
creating build/lib.linux-x86_64-3.4/hips/tiles/tests
copying hips/tiles/tests/setup_package.py -> build/lib.linux-x86_64-3.4/hips/tiles/tests
copying hips/tiles/tests/test_description.py -> build/lib.linux-x86_64-3.4/hips/tiles/tests
copying hips/tiles/tests/test_tile.py -> build/lib.linux-x86_64-3.4/hips/tiles/tests
copying hips/tiles/tests/__init__.py -> build/lib.linux-x86_64-3.4/hips/tiles/tests
creating build/lib.linux-x86_64-3.4/hips/utils/tests
copying hips/utils/tests/test_healpix.py -> build/lib.linux-x86_64-3.4/hips/utils/tests
copying hips/utils/tests/__init__.py -> build/lib.linux-x86_64-3.4/hips/utils/tests
creating build/lib.linux-x86_64-3.4/hips/data
copying hips/data/README.rst -> build/lib.linux-x86_64-3.4/hips/data
copying hips/tests/coveragerc -> build/lib.linux-x86_64-3.4/hips/tests
creating build/lib.linux-x86_64-3.4/hips/tiles/tests/data
copying hips/tiles/tests/data/Npix30889.fits -> build/lib.linux-x86_64-3.4/hips/tiles/tests/data
copying hips/tiles/tests/data/Npix30889.jpg -> build/lib.linux-x86_64-3.4/hips/tiles/tests/data
copying hips/tiles/tests/data/properties.txt -> build/lib.linux-x86_64-3.4/hips/tiles/tests/data
================================================================= test session starts =================================================================
platform linux -- Python 3.4.3, pytest-2.8.3, py-1.4.30, pluggy-0.3.1
Running tests with hips version 0.0.dev87.
Running tests in lib.linux-x86_64-3.4/hips docs.
Date: 2017-06-20T12:32:18
Platform: Linux-4.4.0-42-generic-x86_64-with-Ubuntu-14.04-trusty
Executable: /usr/bin/python3
Full Python Version:
3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4]
encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15
Numpy: 1.12.1
Scipy: 0.19.0
Matplotlib: 1.3.1
Astropy: 1.3
healpy: 1.10.3
reproject: not available
matplotlib: 1.3.1
Using Astropy options: remote_data.
rootdir: /tmp/hips-test-oou7z7r_, inifile: setup.cfg
collected 22 items
hips/data/README.rst .
hips/tiles/tile.py F
hips/tiles/tests/test_description.py ......
hips/tiles/tests/test_tile.py ..s..
hips/utils/healpix.py .
hips/utils/tests/test_healpix.py .
../docs/api.rst .
../docs/changelog.rst .
../docs/develop.rst .
../docs/drawing_algo.rst .
../docs/getting_started.rst .
../docs/index.rst .
../docs/installation.rst .
====================================================================== FAILURES =======================================================================
_________________________________________________________ [doctest] hips.tiles.tile.HipsTile __________________________________________________________
036 data : `numpy.ndarray`
037 Pixel values of HiPS tile
038
039 Examples
040 --------
041 ::
042
043 >>> from hips.tiles import HipsDescription
044 >>> from astropy.utils.data import get_pkg_data_filename
045 >>> filename = get_pkg_data_filename('tests/data/properties.txt')
UNEXPECTED EXCEPTION: URLError(OSError('An attempt was made to connect to the internet by a test that was not marked `remote_data`. The requested host was: data.astropy.org',),)
Traceback (most recent call last):
File "/usr/lib/python3.4/urllib/request.py", line 1182, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.4/http/client.py", line 1125, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1163, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1121, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 951, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 886, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 863, in connect
self.timeout, self.source_address)
File "/usr/local/lib/python3.4/dist-packages/astropy/tests/disable_internet.py", line 75, in new_function
"requested host was: {0}".format(host))
OSError: An attempt was made to connect to the internet by a test that was not marked `remote_data`. The requested host was: data.astropy.org
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/doctest.py", line 1318, in __run
compileflags, 1), test.globs)
File "<doctest hips.tiles.tile.HipsTile[2]>", line 1, in <module>
File "/usr/local/lib/python3.4/dist-packages/astropy/utils/data.py", line 603, in get_pkg_data_filename
timeout=remote_timeout)
File "/usr/local/lib/python3.4/dist-packages/astropy/utils/data.py", line 1097, in download_file
raise e
File "/usr/local/lib/python3.4/dist-packages/astropy/utils/data.py", line 1030, in download_file
remote_url, timeout=timeout)) as remote:
File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.4/urllib/request.py", line 463, in open
response = self._open(req, data)
File "/usr/lib/python3.4/urllib/request.py", line 481, in _open
'_open', req)
File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain
result = func(*args)
File "/usr/lib/python3.4/urllib/request.py", line 1210, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.4/urllib/request.py", line 1184, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error An attempt was made to connect to the internet by a test that was not marked `remote_data`. The requested host was: data.astropy.org>
/tmp/hips-test-oou7z7r_/lib.linux-x86_64-3.4/hips/tiles/tile.py:45: UnexpectedException
=================================================== 1 failed, 20 passed, 1 skipped in 0.52 seconds ===================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment