Created
February 23, 2013 14:00
-
-
Save cdeil/5019868 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mac-ci:~ deil$ python3.1 | |
| Python 3.1.5 (default, Apr 19 2012, 01:28:43) | |
| [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> import astropy | |
| >>> astropy.test() | |
| ==================================================================== test session starts ===================================================================== | |
| platform darwin -- Python 3.1.5 -- pytest-2.3.3 | |
| Testing Astropy version 0.2. | |
| Running tests in /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy. | |
| collected 3719 items / 2 skipped | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/config/tests/test_configs.py ......... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/constants/tests/test_constant.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_api.py ...........s | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_arrays.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_distance.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_name_resolve.py ss | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_sphere_ang_dists.py ..............................x....x.............. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_transformations.py ............... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk4.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk5.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_galactic_fk4.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_icrs_fk5.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/cosmology/tests/test_cosmology.py ssssssss..sssss | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_cds_header_from_readme.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_compressed.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_connect.py ................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_fixedwidth.py ........................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_ipac_definitions.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_read.py ................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_types.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_write.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_checksum.py ................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_core.py ...................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_diff.py ............................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_division.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_groups.py ....... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_hdulist.py ...................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_header.py ........................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_image.py ................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_nonstandard.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_structured.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_table.py .......................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_uint.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_util.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/misc/tests/test_hdf5.py .................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/misc/tests/test_pickle_helpers.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/tests/test_registry.py ......................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/converter_test.py .................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/exception_test.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/table_test.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/tree_test.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/ucd_test.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/util_test.py ........... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/vo_test.py ...........................................................................................................FF.FFF | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py FFFFFFFFFF.................................................................................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve_fft.py ........................................................................................................................................................................................................................................................................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve_kernels.py ................................................................................................................................................................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/tests/test_flag_collection.py .......... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/tests/test_nddata.py ................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/stats/tests/test_funcs.py .s | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_column.py .................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_init_table.py .......................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_item_access.py ...................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_masked.py .......................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_pprint.py ........................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_row.py ................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_table.py .......................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/test_logger.py ........................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_imports.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_open_file_detection.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_run_tests.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_skip_remote_data.py s | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/time/tests/test_basic.py ....................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/time/tests/test_delta.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/time/tests/test_guess.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_format.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_physical.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_quantity.py ............................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_units.py ........................................................................................................................................................................................................................................................................................................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_collections.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_console.py ......... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_data.py .ssss........s.. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_gzip.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_misc.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_odict.py sssssssssssssssssssssssssssssssssssssssssss | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_xml.py ...... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_pickle.py ...... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_profiling.py .................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_wcs.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_wcsprm.py ......................................................................................... | |
| ========================================================================== FAILURES ========================================================================== | |
| _______________________________________________________________________ test_validate ________________________________________________________________________ | |
| def test_validate(): | |
| output = io.StringIO() | |
| # We can't test xmllint, because we can't rely on it being on the | |
| # user's machine. | |
| result = validate(get_pkg_data_filename('data/regression.xml'), | |
| output, xmllint=False) | |
| assert result == False | |
| output.seek(0) | |
| output = output.readlines() | |
| # Uncomment to generate new groundtruth | |
| # with io.open('validation.txt', 'wt', encoding='utf-8') as fd: | |
| # fd.write(u''.join(output)) | |
| with io.open( | |
| > get_pkg_data_filename('data/validation.txt'), | |
| 'rt', encoding='utf-8') as fd: | |
| truth = fd.readlines() | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/vo_test.py:725: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| data_name = 'data/validation.txt' | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:456: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/validation.txt', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:818: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/validation.txt', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:766: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| url = 'http://data.astropy.org/data/validation.txt', data = None, timeout = 3.0 | |
| def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| global _opener | |
| if _opener is None: | |
| _opener = build_opener() | |
| > return _opener.open(url, data, timeout) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:121: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, fullurl = 'http://data.astropy.org/data/validation.txt', data = None, timeout = 3.0 | |
| def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| # accept a URL or a Request object | |
| if isinstance(fullurl, str): | |
| req = Request(fullurl, data) | |
| else: | |
| req = fullurl | |
| if data is not None: | |
| req.data = data | |
| req.timeout = timeout | |
| protocol = req.type | |
| # pre-process request | |
| meth_name = protocol+"_request" | |
| for processor in self.process_request.get(protocol, []): | |
| meth = getattr(processor, meth_name) | |
| req = meth(req) | |
| > response = self._open(req, data) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:352: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, req = <urllib.request.Request object at 0x10a0621d0>, data = None | |
| def _open(self, req, data=None): | |
| result = self._call_chain(self.handle_open, 'default', | |
| 'default_open', req) | |
| if result: | |
| return result | |
| protocol = req.type | |
| result = self._call_chain(self.handle_open, protocol, protocol + | |
| > '_open', req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:370: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090> | |
| chain = {'file': [<urllib.request.FileHandler object at 0x10a058d50>], 'ftp': [<urllib.request.FTPHandler object at 0x10a058d1...rllib.request.HTTPHandler object at 0x10a04fd10>], 'https': [<urllib.request.HTTPSHandler object at 0x10a058dd0>], ...} | |
| kind = 'http', meth_name = 'http_open', args = (<urllib.request.Request object at 0x10a0621d0>,) | |
| handlers = [<urllib.request.HTTPHandler object at 0x10a04fd10>], handler = <urllib.request.HTTPHandler object at 0x10a04fd10> | |
| func = <bound method HTTPHandler.http_open of <urllib.request.HTTPHandler object at 0x10a04fd10>> | |
| def _call_chain(self, chain, kind, meth_name, *args): | |
| # Handlers raise an exception if no one else should try to handle | |
| # the request, or return None if they can't but another handler | |
| # could. Otherwise, they return the response. | |
| handlers = chain.get(kind, ()) | |
| for handler in handlers: | |
| func = getattr(handler, meth_name) | |
| > result = func(*args) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:330: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, req = <urllib.request.Request object at 0x10a0621d0> | |
| def http_open(self, req): | |
| > return self.do_open(http.client.HTTPConnection, req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1125: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, http_class = <class 'http.client.HTTPConnection'> | |
| req = <urllib.request.Request object at 0x10a0621d0> | |
| def do_open(self, http_class, req): | |
| """Return an HTTPResponse object for the request, using http_class. | |
| http_class must implement the HTTPConnection API from http.client. | |
| """ | |
| host = req.host | |
| if not host: | |
| raise URLError('no host given') | |
| h = http_class(host, timeout=req.timeout) # will parse host:port | |
| headers = dict(req.unredirected_hdrs) | |
| headers.update(dict((k, v) for k, v in req.headers.items() | |
| if k not in headers)) | |
| # TODO(jhylton): Should this be redesigned to handle | |
| # persistent connections? | |
| # We want to make an HTTP/1.1 request, but the addinfourl | |
| # class isn't prepared to deal with a persistent connection. | |
| # It will try to read all remaining data from the socket, | |
| # which will block while the server waits for the next request. | |
| # So make sure the connection gets closed after the (only) | |
| # request. | |
| headers["Connection"] = "close" | |
| headers = dict((name.title(), val) for name, val in headers.items()) | |
| if req._tunnel_host: | |
| tunnel_headers = {} | |
| proxy_auth_hdr = "Proxy-Authorization" | |
| if proxy_auth_hdr in headers: | |
| tunnel_headers[proxy_auth_hdr] = headers[proxy_auth_hdr] | |
| # Proxy-Authorization should not be sent to origin | |
| # server. | |
| del headers[proxy_auth_hdr] | |
| h._set_tunnel(req._tunnel_host, headers=tunnel_headers) | |
| try: | |
| h.request(req.get_method(), req.selector, req.data, headers) | |
| r = h.getresponse() # an HTTPResponse instance | |
| except socket.error as err: | |
| > raise URLError(err) | |
| E urllib.error.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known. requested URL: http://data.astropy.org/data/validation.txt> | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1110: URLError | |
| ___________________________________________________________________ test_gzip_filehandles ____________________________________________________________________ | |
| def test_gzip_filehandles(): | |
| votable = parse( | |
| > get_pkg_data_filename('data/regression.xml'), | |
| pedantic=False) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/vo_test.py:746: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| data_name = 'data/regression.xml' | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:456: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/regression.xml', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:818: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/regression.xml', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:766: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| url = 'http://data.astropy.org/data/regression.xml', data = None, timeout = 3.0 | |
| def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| global _opener | |
| if _opener is None: | |
| _opener = build_opener() | |
| > return _opener.open(url, data, timeout) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:121: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, fullurl = 'http://data.astropy.org/data/regression.xml', data = None, timeout = 3.0 | |
| def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| # accept a URL or a Request object | |
| if isinstance(fullurl, str): | |
| req = Request(fullurl, data) | |
| else: | |
| req = fullurl | |
| if data is not None: | |
| req.data = data | |
| req.timeout = timeout | |
| protocol = req.type | |
| # pre-process request | |
| meth_name = protocol+"_request" | |
| for processor in self.process_request.get(protocol, []): | |
| meth = getattr(processor, meth_name) | |
| req = meth(req) | |
| > response = self._open(req, data) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:352: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, req = <urllib.request.Request object at 0x10a131a90>, data = None | |
| def _open(self, req, data=None): | |
| result = self._call_chain(self.handle_open, 'default', | |
| 'default_open', req) | |
| if result: | |
| return result | |
| protocol = req.type | |
| result = self._call_chain(self.handle_open, protocol, protocol + | |
| > '_open', req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:370: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090> | |
| chain = {'file': [<urllib.request.FileHandler object at 0x10a058d50>], 'ftp': [<urllib.request.FTPHandler object at 0x10a058d1...rllib.request.HTTPHandler object at 0x10a04fd10>], 'https': [<urllib.request.HTTPSHandler object at 0x10a058dd0>], ...} | |
| kind = 'http', meth_name = 'http_open', args = (<urllib.request.Request object at 0x10a131a90>,) | |
| handlers = [<urllib.request.HTTPHandler object at 0x10a04fd10>], handler = <urllib.request.HTTPHandler object at 0x10a04fd10> | |
| func = <bound method HTTPHandler.http_open of <urllib.request.HTTPHandler object at 0x10a04fd10>> | |
| def _call_chain(self, chain, kind, meth_name, *args): | |
| # Handlers raise an exception if no one else should try to handle | |
| # the request, or return None if they can't but another handler | |
| # could. Otherwise, they return the response. | |
| handlers = chain.get(kind, ()) | |
| for handler in handlers: | |
| func = getattr(handler, meth_name) | |
| > result = func(*args) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:330: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, req = <urllib.request.Request object at 0x10a131a90> | |
| def http_open(self, req): | |
| > return self.do_open(http.client.HTTPConnection, req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1125: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, http_class = <class 'http.client.HTTPConnection'> | |
| req = <urllib.request.Request object at 0x10a131a90> | |
| def do_open(self, http_class, req): | |
| """Return an HTTPResponse object for the request, using http_class. | |
| http_class must implement the HTTPConnection API from http.client. | |
| """ | |
| host = req.host | |
| if not host: | |
| raise URLError('no host given') | |
| h = http_class(host, timeout=req.timeout) # will parse host:port | |
| headers = dict(req.unredirected_hdrs) | |
| headers.update(dict((k, v) for k, v in req.headers.items() | |
| if k not in headers)) | |
| # TODO(jhylton): Should this be redesigned to handle | |
| # persistent connections? | |
| # We want to make an HTTP/1.1 request, but the addinfourl | |
| # class isn't prepared to deal with a persistent connection. | |
| # It will try to read all remaining data from the socket, | |
| # which will block while the server waits for the next request. | |
| # So make sure the connection gets closed after the (only) | |
| # request. | |
| headers["Connection"] = "close" | |
| headers = dict((name.title(), val) for name, val in headers.items()) | |
| if req._tunnel_host: | |
| tunnel_headers = {} | |
| proxy_auth_hdr = "Proxy-Authorization" | |
| if proxy_auth_hdr in headers: | |
| tunnel_headers[proxy_auth_hdr] = headers[proxy_auth_hdr] | |
| # Proxy-Authorization should not be sent to origin | |
| # server. | |
| del headers[proxy_auth_hdr] | |
| h._set_tunnel(req._tunnel_host, headers=tunnel_headers) | |
| try: | |
| h.request(req.get_method(), req.selector, req.data, headers) | |
| r = h.getresponse() # an HTTPResponse instance | |
| except socket.error as err: | |
| > raise URLError(err) | |
| E urllib.error.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known. requested URL: http://data.astropy.org/data/regression.xml> | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1110: URLError | |
| ________________________________________________________________________ test_fileobj ________________________________________________________________________ | |
| def test_fileobj(): | |
| # Assert that what we get back is a raw C file pointer | |
| # so it will be super fast in the C extension. | |
| from ....utils.xml import iterparser | |
| > filename = get_pkg_data_filename('data/regression.xml') | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/vo_test.py:807: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| data_name = 'data/regression.xml' | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:456: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/regression.xml', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:818: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/regression.xml', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:766: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| url = 'http://data.astropy.org/data/regression.xml', data = None, timeout = 3.0 | |
| def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| global _opener | |
| if _opener is None: | |
| _opener = build_opener() | |
| > return _opener.open(url, data, timeout) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:121: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, fullurl = 'http://data.astropy.org/data/regression.xml', data = None, timeout = 3.0 | |
| def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| # accept a URL or a Request object | |
| if isinstance(fullurl, str): | |
| req = Request(fullurl, data) | |
| else: | |
| req = fullurl | |
| if data is not None: | |
| req.data = data | |
| req.timeout = timeout | |
| protocol = req.type | |
| # pre-process request | |
| meth_name = protocol+"_request" | |
| for processor in self.process_request.get(protocol, []): | |
| meth = getattr(processor, meth_name) | |
| req = meth(req) | |
| > response = self._open(req, data) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:352: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, req = <urllib.request.Request object at 0x10a062210>, data = None | |
| def _open(self, req, data=None): | |
| result = self._call_chain(self.handle_open, 'default', | |
| 'default_open', req) | |
| if result: | |
| return result | |
| protocol = req.type | |
| result = self._call_chain(self.handle_open, protocol, protocol + | |
| > '_open', req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:370: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090> | |
| chain = {'file': [<urllib.request.FileHandler object at 0x10a058d50>], 'ftp': [<urllib.request.FTPHandler object at 0x10a058d1...rllib.request.HTTPHandler object at 0x10a04fd10>], 'https': [<urllib.request.HTTPSHandler object at 0x10a058dd0>], ...} | |
| kind = 'http', meth_name = 'http_open', args = (<urllib.request.Request object at 0x10a062210>,) | |
| handlers = [<urllib.request.HTTPHandler object at 0x10a04fd10>], handler = <urllib.request.HTTPHandler object at 0x10a04fd10> | |
| func = <bound method HTTPHandler.http_open of <urllib.request.HTTPHandler object at 0x10a04fd10>> | |
| def _call_chain(self, chain, kind, meth_name, *args): | |
| # Handlers raise an exception if no one else should try to handle | |
| # the request, or return None if they can't but another handler | |
| # could. Otherwise, they return the response. | |
| handlers = chain.get(kind, ()) | |
| for handler in handlers: | |
| func = getattr(handler, meth_name) | |
| > result = func(*args) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:330: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, req = <urllib.request.Request object at 0x10a062210> | |
| def http_open(self, req): | |
| > return self.do_open(http.client.HTTPConnection, req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1125: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, http_class = <class 'http.client.HTTPConnection'> | |
| req = <urllib.request.Request object at 0x10a062210> | |
| def do_open(self, http_class, req): | |
| """Return an HTTPResponse object for the request, using http_class. | |
| http_class must implement the HTTPConnection API from http.client. | |
| """ | |
| host = req.host | |
| if not host: | |
| raise URLError('no host given') | |
| h = http_class(host, timeout=req.timeout) # will parse host:port | |
| headers = dict(req.unredirected_hdrs) | |
| headers.update(dict((k, v) for k, v in req.headers.items() | |
| if k not in headers)) | |
| # TODO(jhylton): Should this be redesigned to handle | |
| # persistent connections? | |
| # We want to make an HTTP/1.1 request, but the addinfourl | |
| # class isn't prepared to deal with a persistent connection. | |
| # It will try to read all remaining data from the socket, | |
| # which will block while the server waits for the next request. | |
| # So make sure the connection gets closed after the (only) | |
| # request. | |
| headers["Connection"] = "close" | |
| headers = dict((name.title(), val) for name, val in headers.items()) | |
| if req._tunnel_host: | |
| tunnel_headers = {} | |
| proxy_auth_hdr = "Proxy-Authorization" | |
| if proxy_auth_hdr in headers: | |
| tunnel_headers[proxy_auth_hdr] = headers[proxy_auth_hdr] | |
| # Proxy-Authorization should not be sent to origin | |
| # server. | |
| del headers[proxy_auth_hdr] | |
| h._set_tunnel(req._tunnel_host, headers=tunnel_headers) | |
| try: | |
| h.request(req.get_method(), req.selector, req.data, headers) | |
| r = h.getresponse() # an HTTPResponse instance | |
| except socket.error as err: | |
| > raise URLError(err) | |
| E urllib.error.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known. requested URL: http://data.astropy.org/data/regression.xml> | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1110: URLError | |
| ___________________________________________________________________ test_too_many_columns ____________________________________________________________________ | |
| args = (), kwargs = {} | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/helper.py:318: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| @raises(VOTableSpecError) | |
| def test_too_many_columns(): | |
| votable = parse( | |
| > get_pkg_data_filename('data/too_many_columns.xml.gz'), | |
| pedantic=False) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/vo_test.py:664: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| data_name = 'data/too_many_columns.xml.gz' | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:456: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/too_many_columns.xml.gz', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:818: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/too_many_columns.xml.gz', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:766: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| url = 'http://data.astropy.org/data/too_many_columns.xml.gz', data = None, timeout = 3.0 | |
| def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| global _opener | |
| if _opener is None: | |
| _opener = build_opener() | |
| > return _opener.open(url, data, timeout) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:121: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, fullurl = 'http://data.astropy.org/data/too_many_columns.xml.gz', data = None, timeout = 3.0 | |
| def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| # accept a URL or a Request object | |
| if isinstance(fullurl, str): | |
| req = Request(fullurl, data) | |
| else: | |
| req = fullurl | |
| if data is not None: | |
| req.data = data | |
| req.timeout = timeout | |
| protocol = req.type | |
| # pre-process request | |
| meth_name = protocol+"_request" | |
| for processor in self.process_request.get(protocol, []): | |
| meth = getattr(processor, meth_name) | |
| req = meth(req) | |
| > response = self._open(req, data) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:352: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, req = <urllib.request.Request object at 0x10a131c50>, data = None | |
| def _open(self, req, data=None): | |
| result = self._call_chain(self.handle_open, 'default', | |
| 'default_open', req) | |
| if result: | |
| return result | |
| protocol = req.type | |
| result = self._call_chain(self.handle_open, protocol, protocol + | |
| > '_open', req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:370: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090> | |
| chain = {'file': [<urllib.request.FileHandler object at 0x10a058d50>], 'ftp': [<urllib.request.FTPHandler object at 0x10a058d1...rllib.request.HTTPHandler object at 0x10a04fd10>], 'https': [<urllib.request.HTTPSHandler object at 0x10a058dd0>], ...} | |
| kind = 'http', meth_name = 'http_open', args = (<urllib.request.Request object at 0x10a131c50>,) | |
| handlers = [<urllib.request.HTTPHandler object at 0x10a04fd10>], handler = <urllib.request.HTTPHandler object at 0x10a04fd10> | |
| func = <bound method HTTPHandler.http_open of <urllib.request.HTTPHandler object at 0x10a04fd10>> | |
| def _call_chain(self, chain, kind, meth_name, *args): | |
| # Handlers raise an exception if no one else should try to handle | |
| # the request, or return None if they can't but another handler | |
| # could. Otherwise, they return the response. | |
| handlers = chain.get(kind, ()) | |
| for handler in handlers: | |
| func = getattr(handler, meth_name) | |
| > result = func(*args) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:330: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, req = <urllib.request.Request object at 0x10a131c50> | |
| def http_open(self, req): | |
| > return self.do_open(http.client.HTTPConnection, req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1125: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, http_class = <class 'http.client.HTTPConnection'> | |
| req = <urllib.request.Request object at 0x10a131c50> | |
| def do_open(self, http_class, req): | |
| """Return an HTTPResponse object for the request, using http_class. | |
| http_class must implement the HTTPConnection API from http.client. | |
| """ | |
| host = req.host | |
| if not host: | |
| raise URLError('no host given') | |
| h = http_class(host, timeout=req.timeout) # will parse host:port | |
| headers = dict(req.unredirected_hdrs) | |
| headers.update(dict((k, v) for k, v in req.headers.items() | |
| if k not in headers)) | |
| # TODO(jhylton): Should this be redesigned to handle | |
| # persistent connections? | |
| # We want to make an HTTP/1.1 request, but the addinfourl | |
| # class isn't prepared to deal with a persistent connection. | |
| # It will try to read all remaining data from the socket, | |
| # which will block while the server waits for the next request. | |
| # So make sure the connection gets closed after the (only) | |
| # request. | |
| headers["Connection"] = "close" | |
| headers = dict((name.title(), val) for name, val in headers.items()) | |
| if req._tunnel_host: | |
| tunnel_headers = {} | |
| proxy_auth_hdr = "Proxy-Authorization" | |
| if proxy_auth_hdr in headers: | |
| tunnel_headers[proxy_auth_hdr] = headers[proxy_auth_hdr] | |
| # Proxy-Authorization should not be sent to origin | |
| # server. | |
| del headers[proxy_auth_hdr] | |
| h._set_tunnel(req._tunnel_host, headers=tunnel_headers) | |
| try: | |
| h.request(req.get_method(), req.selector, req.data, headers) | |
| r = h.getresponse() # an HTTPResponse instance | |
| except socket.error as err: | |
| > raise URLError(err) | |
| E urllib.error.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known. requested URL: http://data.astropy.org/data/too_many_columns.xml.gz> | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1110: URLError | |
| __________________________________________________________________ test_parse_single_table3 __________________________________________________________________ | |
| args = (), kwargs = {} | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/helper.py:318: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| @raises(IndexError) | |
| def test_parse_single_table3(): | |
| table2 = parse_single_table( | |
| > get_pkg_data_filename('data/regression.xml'), | |
| table_number=3, pedantic=False) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/vo_test.py:88: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| data_name = 'data/regression.xml' | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:456: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/regression.xml', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:818: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| remote_url = 'http://data.astropy.org/data/regression.xml', cache = True | |
| > ??? | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/data.py:766: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| url = 'http://data.astropy.org/data/regression.xml', data = None, timeout = 3.0 | |
| def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| global _opener | |
| if _opener is None: | |
| _opener = build_opener() | |
| > return _opener.open(url, data, timeout) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:121: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, fullurl = 'http://data.astropy.org/data/regression.xml', data = None, timeout = 3.0 | |
| def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): | |
| # accept a URL or a Request object | |
| if isinstance(fullurl, str): | |
| req = Request(fullurl, data) | |
| else: | |
| req = fullurl | |
| if data is not None: | |
| req.data = data | |
| req.timeout = timeout | |
| protocol = req.type | |
| # pre-process request | |
| meth_name = protocol+"_request" | |
| for processor in self.process_request.get(protocol, []): | |
| meth = getattr(processor, meth_name) | |
| req = meth(req) | |
| > response = self._open(req, data) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:352: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090>, req = <urllib.request.Request object at 0x10a04f810>, data = None | |
| def _open(self, req, data=None): | |
| result = self._call_chain(self.handle_open, 'default', | |
| 'default_open', req) | |
| if result: | |
| return result | |
| protocol = req.type | |
| result = self._call_chain(self.handle_open, protocol, protocol + | |
| > '_open', req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:370: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.OpenerDirector object at 0x10a062090> | |
| chain = {'file': [<urllib.request.FileHandler object at 0x10a058d50>], 'ftp': [<urllib.request.FTPHandler object at 0x10a058d1...rllib.request.HTTPHandler object at 0x10a04fd10>], 'https': [<urllib.request.HTTPSHandler object at 0x10a058dd0>], ...} | |
| kind = 'http', meth_name = 'http_open', args = (<urllib.request.Request object at 0x10a04f810>,) | |
| handlers = [<urllib.request.HTTPHandler object at 0x10a04fd10>], handler = <urllib.request.HTTPHandler object at 0x10a04fd10> | |
| func = <bound method HTTPHandler.http_open of <urllib.request.HTTPHandler object at 0x10a04fd10>> | |
| def _call_chain(self, chain, kind, meth_name, *args): | |
| # Handlers raise an exception if no one else should try to handle | |
| # the request, or return None if they can't but another handler | |
| # could. Otherwise, they return the response. | |
| handlers = chain.get(kind, ()) | |
| for handler in handlers: | |
| func = getattr(handler, meth_name) | |
| > result = func(*args) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:330: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, req = <urllib.request.Request object at 0x10a04f810> | |
| def http_open(self, req): | |
| > return self.do_open(http.client.HTTPConnection, req) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1125: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| self = <urllib.request.HTTPHandler object at 0x10a04fd10>, http_class = <class 'http.client.HTTPConnection'> | |
| req = <urllib.request.Request object at 0x10a04f810> | |
| def do_open(self, http_class, req): | |
| """Return an HTTPResponse object for the request, using http_class. | |
| http_class must implement the HTTPConnection API from http.client. | |
| """ | |
| host = req.host | |
| if not host: | |
| raise URLError('no host given') | |
| h = http_class(host, timeout=req.timeout) # will parse host:port | |
| headers = dict(req.unredirected_hdrs) | |
| headers.update(dict((k, v) for k, v in req.headers.items() | |
| if k not in headers)) | |
| # TODO(jhylton): Should this be redesigned to handle | |
| # persistent connections? | |
| # We want to make an HTTP/1.1 request, but the addinfourl | |
| # class isn't prepared to deal with a persistent connection. | |
| # It will try to read all remaining data from the socket, | |
| # which will block while the server waits for the next request. | |
| # So make sure the connection gets closed after the (only) | |
| # request. | |
| headers["Connection"] = "close" | |
| headers = dict((name.title(), val) for name, val in headers.items()) | |
| if req._tunnel_host: | |
| tunnel_headers = {} | |
| proxy_auth_hdr = "Proxy-Authorization" | |
| if proxy_auth_hdr in headers: | |
| tunnel_headers[proxy_auth_hdr] = headers[proxy_auth_hdr] | |
| # Proxy-Authorization should not be sent to origin | |
| # server. | |
| del headers[proxy_auth_hdr] | |
| h._set_tunnel(req._tunnel_host, headers=tunnel_headers) | |
| try: | |
| h.request(req.get_method(), req.selector, req.data, headers) | |
| r = h.getresponse() # an HTTPResponse instance | |
| except socket.error as err: | |
| > raise URLError(err) | |
| E urllib.error.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known. requested URL: http://data.astropy.org/data/regression.xml> | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/urllib/request.py:1110: URLError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[>f4->f4] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x10a234ed0>, dtype_array = '>f4', dtype_kernel = '>f4' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.], dtype=float32), kernel = array([ 0., 1., 0.], dtype=float32), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| > ??? | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[>f4-<f4] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x10a1c5f90>, dtype_array = '>f4', dtype_kernel = '<f4' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.], dtype=float32), kernel = array([ 0., 1., 0.], dtype=float32), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| > ??? | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[>f4->f8] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x10a196a90>, dtype_array = '>f4', dtype_kernel = '>f8' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.], dtype=float32), kernel = array([ 0., 1., 0.]), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| > ??? | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[>f4-<f8] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x1095a4a10>, dtype_array = '>f4', dtype_kernel = '<f8' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.], dtype=float32), kernel = array([ 0., 1., 0.]), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| > ??? | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[<f4->f4] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x10a1b7a10>, dtype_array = '<f4', dtype_kernel = '>f4' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.], dtype=float32), kernel = array([ 0., 1., 0.], dtype=float32), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| > ??? | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[<f4-<f4] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x10a1a8f90>, dtype_array = '<f4', dtype_kernel = '<f4' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.], dtype=float32), kernel = array([ 0., 1., 0.], dtype=float32), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| > ??? | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[<f4->f8] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x109531510>, dtype_array = '<f4', dtype_kernel = '>f8' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.], dtype=float32), kernel = array([ 0., 1., 0.]), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| > ??? | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[<f4-<f8] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x109519850>, dtype_array = '<f4', dtype_kernel = '<f8' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.], dtype=float32), kernel = array([ 0., 1., 0.]), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| > ??? | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[>f8->f4] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x108ff25d0>, dtype_array = '>f8', dtype_kernel = '>f4' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.]), kernel = array([ 0., 1., 0.], dtype=float32), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| > ??? | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| _____________________________________________________________ TestConvolve1D.test_dtype[>f8-<f4] _____________________________________________________________ | |
| self = <astropy.nddata.convolution.tests.test_convolve.TestConvolve1D object at 0x108fe5990>, dtype_array = '>f8', dtype_kernel = '<f4' | |
| @pytest.mark.parametrize(('dtype_array', 'dtype_kernel'), VALID_DTYPES) | |
| def test_dtype(self, dtype_array, dtype_kernel): | |
| ''' | |
| Test that 32- and 64-bit floats are correctly handled | |
| ''' | |
| x = np.array([1., 2., 3.], dtype=dtype_array) | |
| y = np.array([0., 1., 0.], dtype=dtype_kernel) | |
| > z = convolve(x, y) | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py:30: | |
| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
| array = array([ 1., 2., 3.]), kernel = array([ 0., 1., 0.], dtype=float32), boundary = None, fill_value = 0.0, normalize_kernel = False | |
| def convolve(array, kernel, boundary=None, fill_value=0., | |
| normalize_kernel=False): | |
| ''' | |
| Convolve an array with a kernel. | |
| This routine differs from `scipy.ndimage.filters.convolve` because | |
| it includes a special treatment for `NaN` values. Rather than | |
| including `NaNs` in the convolution calculation, which causes large | |
| `NaN` holes in the convolved image, `NaN` values are replaced with | |
| interpolated values using the kernel as an interpolation function. | |
| Parameters | |
| ---------- | |
| array : `numpy.ndarray` | |
| The array to convolve. This should be a 1, 2, or 3-dimensional array | |
| or a list or a set of nested lists representing a 1, 2, or | |
| 3-dimensional array. | |
| kernel : `numpy.ndarray` | |
| The convolution kernel. The number of dimensions should match those | |
| for the array, and the dimensions should be odd in all directions. | |
| boundary : str, optional | |
| A flag indicating how to handle boundaries: | |
| * `None` | |
| Set the `result` values to zero where the kernel | |
| extends beyond the edge of the array (default). | |
| * 'fill' | |
| Set values outside the array boundary to `fill_value`. | |
| * 'wrap' | |
| Periodic boundary that wrap to the other side of `array`. | |
| * 'extend' | |
| Set values outside the array to the nearest `array` | |
| value. | |
| fill_value : float, optional | |
| The value to use outside the array when using boundary='fill' | |
| normalize_kernel : bool, optional | |
| Whether to normalize the kernel prior to convolving | |
| Returns | |
| ------- | |
| result : `numpy.ndarray` | |
| An array with the same dimensions and type as the input array, | |
| convolved with kernel. | |
| Notes | |
| ----- | |
| Masked arrays are not supported at this time. | |
| ''' | |
| > from .boundary_none import convolve1d_boundary_none, \ | |
| convolve2d_boundary_none, \ | |
| convolve3d_boundary_none | |
| E ImportError: No module named boundary_none | |
| /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/convolve.py:54: ImportError | |
| ============================================== 15 failed, 3636 passed, 68 skipped, 2 xfailed in 466.77 seconds =============================================== | |
| 1 | |
| >>> ^D | |
| mac-ci:~ deil$ python3.1 -c 'import astropy; astropy.test()' | |
| ==================================================================== test session starts ===================================================================== | |
| platform darwin -- Python 3.1.5 -- pytest-2.3.3 | |
| Testing Astropy version 0.2. | |
| Running tests in /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy. | |
| collected 3719 items / 2 skipped | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/config/tests/test_configs.py ......... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/constants/tests/test_constant.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_api.py ...........s | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_arrays.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_distance.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_name_resolve.py ss | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_sphere_ang_dists.py ..............................x....x.............. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_transformations.py ............... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk4.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk5.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_galactic_fk4.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_icrs_fk5.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/cosmology/tests/test_cosmology.py ssssssss..sssss | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_cds_header_from_readme.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_compressed.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_connect.py ................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_fixedwidth.py ........................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_ipac_definitions.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_read.py ................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_types.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_write.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_checksum.py ................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_core.py ...................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_diff.py ............................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_division.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_groups.py ....... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_hdulist.py ...................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_header.py ........................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_image.py ................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_nonstandard.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_structured.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_table.py .......................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_uint.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_util.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/misc/tests/test_hdf5.py .................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/misc/tests/test_pickle_helpers.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/tests/test_registry.py ......................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/converter_test.py .................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/exception_test.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/table_test.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/tree_test.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/ucd_test.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/util_test.py ........... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/vo_test.py ................................................................................................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py ............................................................................................................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve_fft.py ........................................................................................................................................................................................................................................................................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve_kernels.py ................................................................................................................................................................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/tests/test_flag_collection.py .......... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/tests/test_nddata.py ................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/stats/tests/test_funcs.py .s | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_column.py .................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_init_table.py .......................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_item_access.py ...................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_masked.py .......................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_pprint.py ........................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_row.py ................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_table.py .......................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/test_logger.py ........................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_imports.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_open_file_detection.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_run_tests.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_skip_remote_data.py s | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/time/tests/test_basic.py ....................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/time/tests/test_delta.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/time/tests/test_guess.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_format.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_physical.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_quantity.py ............................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_units.py ........................................................................................................................................................................................................................................................................................................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_collections.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_console.py ......... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_data.py .ssss........s.. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_gzip.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_misc.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_odict.py sssssssssssssssssssssssssssssssssssssssssss | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_xml.py ...... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_pickle.py ...... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_profiling.py .................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_wcs.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_wcsprm.py ......................................................................................... | |
| ==================================================== 3651 passed, 68 skipped, 2 xfailed in 238.25 seconds ==================================================== | |
| mac-ci:~ deil$ python3.1 | |
| Python 3.1.5 (default, Apr 19 2012, 01:28:43) | |
| [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> import astropy | |
| >>> astropy.test() | |
| ==================================================================== test session starts ===================================================================== | |
| platform darwin -- Python 3.1.5 -- pytest-2.3.3 | |
| Testing Astropy version 0.2. | |
| Running tests in /opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy. | |
| collected 3719 items / 2 skipped | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/config/tests/test_configs.py ......... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/constants/tests/test_constant.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_api.py ...........s | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_arrays.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_distance.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_name_resolve.py ss | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_sphere_ang_dists.py ..............................x....x.............. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/test_transformations.py ............... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk4.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_fk4_no_e_fk5.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_galactic_fk4.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/coordinates/tests/accuracy/test_icrs_fk5.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/cosmology/tests/test_cosmology.py ssssssss..sssss | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_cds_header_from_readme.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_compressed.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_connect.py ................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_fixedwidth.py ........................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_ipac_definitions.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_read.py ................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_types.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/ascii/tests/test_write.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_checksum.py ................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_core.py ...................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_diff.py ............................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_division.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_groups.py ....... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_hdulist.py ...................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_header.py ........................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_image.py ................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_nonstandard.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_structured.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_table.py .......................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_uint.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/fits/tests/test_util.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/misc/tests/test_hdf5.py .................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/misc/tests/test_pickle_helpers.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/tests/test_registry.py ......................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/converter_test.py .................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/exception_test.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/table_test.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/tree_test.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/ucd_test.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/util_test.py ........... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/io/votable/tests/vo_test.py ................................................................................................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve.py ............................................................................................................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve_fft.py ........................................................................................................................................................................................................................................................................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/convolution/tests/test_convolve_kernels.py ................................................................................................................................................................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/tests/test_flag_collection.py .......... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/nddata/tests/test_nddata.py ................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/stats/tests/test_funcs.py .s | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_column.py .................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_init_table.py .......................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_item_access.py ...................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_masked.py .......................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_pprint.py ........................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_row.py ................ | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/table/tests/test_table.py .......................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/test_logger.py ........................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_imports.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_open_file_detection.py . | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_run_tests.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/tests/tests/test_skip_remote_data.py s | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/time/tests/test_basic.py ....................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/time/tests/test_delta.py ... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/time/tests/test_guess.py .... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_format.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_physical.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_quantity.py ............................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/units/tests/test_units.py ........................................................................................................................................................................................................................................................................................................................................................................................................... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_collections.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_console.py ......... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_data.py .ssss........s.. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_gzip.py .. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_misc.py ..... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_odict.py sssssssssssssssssssssssssssssssssssssssssss | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/utils/tests/test_xml.py ...... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_pickle.py ...... | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_profiling.py .................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_wcs.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. | |
| ../../opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/astropy/wcs/tests/test_wcsprm.py ......................................................................................... | |
| ==================================================== 3651 passed, 68 skipped, 2 xfailed in 216.89 seconds ==================================================== | |
| 0 | |
| >>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment