Skip to content

Commit fef04e6

Browse files
committed
compat
1 parent 6e76b51 commit fef04e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/extension/decimal/test_decimal.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,9 @@ def _formatting_values(self):
393393
return np.array(self)
394394

395395
ser = pd.Series(DecimalArray2([decimal.Decimal('1.0')]))
396+
# different levels for 2 vs. 3
397+
check_stacklevel = compat.PY3
396398

397-
with tm.assert_produces_warning(FutureWarning):
399+
with tm.assert_produces_warning(FutureWarning,
400+
check_stacklevel=check_stacklevel):
398401
repr(ser)

0 commit comments

Comments
 (0)