(temp_file)
| 446 | |
| 447 | |
| 448 | def test_pickle_fsspec_roundtrip(temp_file): |
| 449 | pytest.importorskip("fsspec") |
| 450 | # Using temp_file for context, but fsspec uses memory URL |
| 451 | mockurl = "memory://mockfile" |
| 452 | df = DataFrame( |
| 453 | 1.1 * np.arange(120).reshape((30, 4)), |
| 454 | columns=Index(list("ABCD"), dtype=object), |
| 455 | index=Index([f"i-{i}" for i in range(30)], dtype=object), |
| 456 | ) |
| 457 | df.to_pickle(mockurl) |
| 458 | result = pd.read_pickle(mockurl) |
| 459 | tm.assert_frame_equal(df, result) |
| 460 | |
| 461 | |
| 462 | class MyTz(datetime.tzinfo): |