Skip to content

Conversation

@pcmoritz
Copy link
Contributor

No description provided.


expected_msg = 'Timestamp value had non-zero intraday milliseconds'
with pytest.raises(pa.ArrowInvalid, msg=expected_msg):
with pytest.raises(pa.ArrowInvalid, message=expected_msg):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I said on JIRA, this should actually use the match argument: message specifies the failure message in case the test fails, not the exception test to match with.

@pitrou pitrou changed the title ARROW-2508: Fix pytest.raises msg to message ARROW-2508: [Python] Fix pytest.raises msg to message Apr 25, 2018
Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@pitrou pitrou closed this in 2d278ab Apr 25, 2018
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