()
| 5260 | |
| 5261 | |
| 5262 | def test_array_conversion_for_datetime(): |
| 5263 | # GH-35235 |
| 5264 | # pandas implemented __from_arrow__ for DatetimeTZDtype, |
| 5265 | # but we choose to do the conversion in Arrow instead. |
| 5266 | # https://github.com/pandas-dev/pandas/pull/52201 |
| 5267 | series = pd.Series(pd.date_range("2012", periods=2, tz="Europe/Brussels")) |
| 5268 | arr = pa.array(series) |
| 5269 | |
| 5270 | result = arr.to_pandas() |
| 5271 | tm.assert_series_equal(result, series) |
| 5272 | |
| 5273 | |
| 5274 | @pytest.mark.large_memory |