{"action":"created","issue":{"url":"https://api.github.com/repos/astroML/gatspy/issues/21","labels_url":"https://api.github.com/repos/astroML/gatspy/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/astroML/gatspy/issues/21/comments","events_url":"https://api.github.com/repos/astroML/gatspy/issues/21/events","html_url":"https://github.com/astroML/gatspy/issues/21","id":127336390,"number":21,"title":"Tests do not run when being offline at build time","user":{"login":"lupinix","id":878088,"avatar_url":"https://avatars.githubusercontent.com/u/878088?v=3","gravatar_id":"","url":"https://api.github.com/users/lupinix","html_url":"https://github.com/lupinix","followers_url":"https://api.github.com/users/lupinix/followers","following_url":"https://api.github.com/users/lupinix/following{/other_user}","gists_url":"https://api.github.com/users/lupinix/gists{/gist_id}","starred_url":"https://api.github.com/users/lupinix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lupinix/subscriptions","organizations_url":"https://api.github.com/users/lupinix/orgs","repos_url":"https://api.github.com/users/lupinix/repos","events_url":"https://api.github.com/users/lupinix/events{/privacy}","received_events_url":"https://api.github.com/users/lupinix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-19T00:10:05Z","updated_at":"2016-01-20T18:33:42Z","closed_at":"2016-01-20T17:20:17Z","body":"I'm packaging all astroML related packages for Fedora (astroML, astroML-addons and supersmoother already done). For gatspy I haven't found a way to run the tests without an internet connection, I get something like \r\n```\r\nERROR: gatspy.datasets.tests.test_download_data.test_downloads\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/builddir/build/BUILD/gatspy-0.2.1/gatspy/datasets/tests/test_download_data.py\", line 19, in test_downloads\r\n    data = downloader()\r\n  File \"/builddir/build/BUILD/gatspy-0.2.1/gatspy/datasets/rrlyrae.py\", line 381, in fetch_rrlyrae\r\n    cache_kwargs=kwargs)\r\n  File \"/builddir/build/BUILD/gatspy-0.2.1/gatspy/datasets/rrlyrae.py\", line 82, in __init__\r\n    self._load_data()\r\n  File \"/builddir/build/BUILD/gatspy-0.2.1/gatspy/datasets/rrlyrae.py\", line 86, in _load_data\r\n    **(self.cache_kwargs or {}))\r\n  File \"/builddir/build/BUILD/gatspy-0.2.1/gatspy/datasets/rrlyrae.py\", line 37, in _get_download_or_cache\r\n    buf = download_with_progress_bar(src_url)\r\n  File \"/usr/lib/python2.7/site-packages/astroML/datasets/tools/download.py\", line 41, in download_with_progress_bar\r\n    fhandle = urlopen(data_url)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 154, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 431, in open\r\n    response = self._open(req, data)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 449, in _open\r\n    '_open', req)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 409, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 1229, in http_open\r\n    return self.do_open(httplib.HTTPConnection, req)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 1199, in do_open\r\n    raise URLError(err)\r\nURLError: <urlopen error [Errno -3] Temporary failure in name resolution>\r\n```\r\n\r\nIs there any possibility to run tests without network? Is required in Fedora Packaging Guidelines: https://fedoraproject.org/wiki/Packaging:Guidelines#Build_time_network_access\r\n\r\nFor now I'll build the package without running tests, they run fine on local machines with network access.\r\n\r\nBest Regards\r\nChristian"},"comment":{"url":"https://api.github.com/repos/astroML/gatspy/issues/comments/173317401","html_url":"https://github.com/astroML/gatspy/issues/21#issuecomment-173317401","issue_url":"https://api.github.com/repos/astroML/gatspy/issues/21","id":173317401,"user":{"login":"lupinix","id":878088,"avatar_url":"https://avatars.githubusercontent.com/u/878088?v=3","gravatar_id":"","url":"https://api.github.com/users/lupinix","html_url":"https://github.com/lupinix","followers_url":"https://api.github.com/users/lupinix/followers","following_url":"https://api.github.com/users/lupinix/following{/other_user}","gists_url":"https://api.github.com/users/lupinix/gists{/gist_id}","starred_url":"https://api.github.com/users/lupinix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lupinix/subscriptions","organizations_url":"https://api.github.com/users/lupinix/orgs","repos_url":"https://api.github.com/users/lupinix/repos","events_url":"https://api.github.com/users/lupinix/events{/privacy}","received_events_url":"https://api.github.com/users/lupinix/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T18:33:42Z","updated_at":"2016-01-20T18:33:42Z","body":"New release is not required, I'll just add the patch to the package until next release comes out. Thank you very much :)"}}