(self)
| 638 | assert_identical(expected, unpickled_ds) |
| 639 | |
| 640 | def test_pickle_dataarray(self) -> None: |
| 641 | expected = Dataset({"foo": ("x", [42])}) |
| 642 | with self.roundtrip(expected, allow_cleanup_failure=ON_WINDOWS) as roundtripped: |
| 643 | raw_pickle = pickle.dumps(roundtripped["foo"]) |
| 644 | with pickle.loads(raw_pickle) as unpickled: |
| 645 | assert_identical(expected["foo"], unpickled) |
| 646 | |
| 647 | def test_dataset_caching(self) -> None: |
| 648 | expected = Dataset({"foo": ("x", [5, 6, 7])}) |
no test coverage detected