From b20e12cae68dd86ff51597464045656763d369f7 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Thu, 8 Feb 2018 15:46:36 -0600 Subject: [PATCH] Py2 compat --- pandas/tests/extension_arrays/test_common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandas/tests/extension_arrays/test_common.py b/pandas/tests/extension_arrays/test_common.py index 7feb7fdf09ec6..f19754482b04f 100644 --- a/pandas/tests/extension_arrays/test_common.py +++ b/pandas/tests/extension_arrays/test_common.py @@ -27,8 +27,10 @@ def test_astype(): def test_astype_raises(): arr = DummyArray(np.array([1, 2, 3])) + # type int for py2 + # class int for py3 xpr = ("DummyArray can only be coerced to 'object' dtype, not " - "''") + "'<.* 'int'>'") with tm.assert_raises_regex(ValueError, xpr): arr.astype(int)