astropy/astropy — pull request #734 by eteq (2013-02-06 06:18:03+00:00)
Title: add remote-data to Travis tests

This is a new take on #491, aiming at turning on the ``--remote-data`` option for the Travis tests. It implements the suggestion by @astrofrog and @mdboom of using the astropy web site for the test web page, rather than google (which was doing some odd things with encoding). Note that this also required astropy/astropy-website@5fafaab16f2e4709a7094ef3c203336cfdf2d45e which I already pushed up.

This solves the problems encountered in #491, but it reveals a couple others. We'll see what this round of tests shows, but you can look at https://travis-ci.org/eteq/astropy/builds/4609134 for the results of a test build I ran of similar code.

I notice three problems there (the third should be fixed in this PR, but we'll see what Travis says):
1. `find_api_page` seems to have problems with its request to get `objects.inv` from the astropy docs timing out. I'm not sure if this is transient or not - I haven't seen it on local tests, but I think @iguananaut mentioned this previously.

2. `coordinates.name_resolve` seems to sometimes fail with a myserious ``BadStatusLine: ''`` - I have no idea what that's about - @adrn, any ideas?

3. ``TypeError: Type str doesn't support the buffer API`` - this is a py2 -> py3 problem in `find_api_page`, and I believe I fixed it with the last commit here. The travis tests of this PR will determine if so.

1 and 2 seem to be intermittent, but due to the server rather than astropy itself. What do you all (esp. @mdboom @astrofrog who were involved in #491) think we should do about this?