Skip to content

Commit b0315f3

Browse files
committed
add tests
1 parent 70c7e7f commit b0315f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/tests/io/json/test_pandas.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,3 +2192,9 @@ def test_read_json_lines_rangeindex():
21922192
result = read_json(StringIO(data), lines=True).index
21932193
expected = RangeIndex(2)
21942194
tm.assert_index_equal(result, expected, exact=True)
2195+
2196+
2197+
def test_read_json_to_datetime_futurewarning_supress():
2198+
data = '{"A":{"0":"X","Y":"Y"}}'
2199+
with tm.assert_produces_warning(None):
2200+
read_json(StringIO(data))

0 commit comments

Comments
 (0)