From 6f08858a48a2e4a931c6818869019083ef4e3ba6 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Mon, 26 Mar 2018 07:19:01 -0500 Subject: [PATCH] CI: Fixed deprecationWarning Closes https://github.com/pandas-dev/pandas/issues/20479#issuecomment-375928764 --- pandas/tests/extension/decimal/test_decimal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/extension/decimal/test_decimal.py b/pandas/tests/extension/decimal/test_decimal.py index 7d959ea4fcd84..b6303ededd0dc 100644 --- a/pandas/tests/extension/decimal/test_decimal.py +++ b/pandas/tests/extension/decimal/test_decimal.py @@ -134,7 +134,7 @@ def test_series_constructor_with_same_dtype_ok(): def test_series_constructor_coerce_extension_array_to_dtype_raises(): arr = DecimalArray([decimal.Decimal('10.0')]) - xpr = "Cannot specify a dtype 'int64' .* \('decimal'\)." + xpr = r"Cannot specify a dtype 'int64' .* \('decimal'\)." with tm.assert_raises_regex(ValueError, xpr): pd.Series(arr, dtype='int64')