You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ap...@apache.org on 2018/04/25 11:50:52 UTC

[arrow] branch master updated: ARROW-2508: [Python] Fix pytest.raises msg to message

This is an automated email from the ASF dual-hosted git repository.

apitrou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d278ab  ARROW-2508: [Python] Fix pytest.raises msg to message
2d278ab is described below

commit 2d278ab896c0bbe1d1a0b83c51387bcdb2439f47
Author: Philipp Moritz <pc...@gmail.com>
AuthorDate: Wed Apr 25 13:50:45 2018 +0200

    ARROW-2508: [Python] Fix pytest.raises msg to message
    
    Author: Philipp Moritz <pc...@gmail.com>
    Author: Antoine Pitrou <pi...@free.fr>
    
    Closes #1944 from pcmoritz/fix-pytest-msg and squashes the following commits:
    
    00b2cd4 <Antoine Pitrou> Use `match` argument as intended by the test
    6d6cc68 <Philipp Moritz> fix pytest.raises msg to message
---
 python/pyarrow/tests/test_convert_pandas.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyarrow/tests/test_convert_pandas.py b/python/pyarrow/tests/test_convert_pandas.py
index 62ea5b8..e3cc836 100644
--- a/python/pyarrow/tests/test_convert_pandas.py
+++ b/python/pyarrow/tests/test_convert_pandas.py
@@ -859,7 +859,7 @@ class TestConvertDateTimeLikeTypes(object):
         ])
 
         expected_msg = 'Timestamp value had non-zero intraday milliseconds'
-        with pytest.raises(pa.ArrowInvalid, msg=expected_msg):
+        with pytest.raises(pa.ArrowInvalid, match=expected_msg):
             pa.Array.from_pandas(s, type=pa.date64(), mask=mask)
 
     def test_date_infer(self):

-- 
To stop receiving notification emails like this one, please contact
apitrou@apache.org.