Skip to content

Commit b20e12c

Browse files
committed
Py2 compat
1 parent fbf0a06 commit b20e12c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/extension_arrays/test_common.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ def test_astype():
2727
def test_astype_raises():
2828
arr = DummyArray(np.array([1, 2, 3]))
2929

30+
# type int for py2
31+
# class int for py3
3032
xpr = ("DummyArray can only be coerced to 'object' dtype, not "
31-
"'<class 'int'>'")
33+
"'<.* 'int'>'")
3234

3335
with tm.assert_raises_regex(ValueError, xpr):
3436
arr.astype(int)

0 commit comments

Comments
 (0)