Closed dhirschfeld closed 7 years ago
idk why this test is flapping, it looks like it is trying to hit some remote resource. We need to patch that so its not actually doing network IO. I probably won't be able to do that until this weekend but I could help you with it if you want to fix the test ;)
Yeah, it seems a of an anti-pattern having unit-tests trying to hit the web.
If you don't get to it first I can take a look next week as it's coming up :beer: o'clock down these parts!
The offending test is:
@pytest.mark.xfail(raises=HTTPError)
def test_failed_url():
failed_url = "http://foo.com/myfile.csv"
with tmpfile('.csv') as fn:
odo(failed_url, fn)
When I run that locally it works fine but on Travis it seems to give a timeout error rather than an HTTPError:
URLError: <urlopen error [Errno 110] Connection timed out>
I don't have much experience mocking http requests but I gave it a go over at #557.
See also #546
@llllllllll - would be good to get this merged if you can find the time...
is this the same as: https://github.com/blaze/odo/pull/546/files?
Duplicate of #546
The
tslib
namespace isdeprecated
.Calling
type(pd.NaT)
is equivalent and works even on pandas0.15.0
.