Skip to content

Conversation

@dhirschfeld
Copy link
Contributor

The tslib namespace is deprecated.

Calling type(pd.NaT) is equivalent and works even on pandas 0.15.0.

@llllllllll
Copy link
Member

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 ;)

@dhirschfeld
Copy link
Contributor Author

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 🍺 o'clock down these parts!

@dhirschfeld
Copy link
Contributor Author

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>

@dhirschfeld
Copy link
Contributor Author

I don't have much experience mocking http requests but I gave it a go over at #557.

@dhirschfeld
Copy link
Contributor Author

See also #546

@dhirschfeld
Copy link
Contributor Author

@llllllllll - would be good to get this merged if you can find the time...

@llllllllll
Copy link
Member

@dhirschfeld
Copy link
Contributor Author

Duplicate of #546

@dhirschfeld dhirschfeld deleted the pandas-fix branch July 25, 2017 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants