We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbf0a06 commit b20e12cCopy full SHA for b20e12c
pandas/tests/extension_arrays/test_common.py
@@ -27,8 +27,10 @@ def test_astype():
27
def test_astype_raises():
28
arr = DummyArray(np.array([1, 2, 3]))
29
30
+ # type int for py2
31
+ # class int for py3
32
xpr = ("DummyArray can only be coerced to 'object' dtype, not "
- "'<class 'int'>'")
33
+ "'<.* 'int'>'")
34
35
with tm.assert_raises_regex(ValueError, xpr):
36
arr.astype(int)
0 commit comments