Skip to content

Commit

Permalink
load in context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Hamman committed May 15, 2018
1 parent 45f0aeb commit 99c9661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -2654,8 +2654,8 @@ def test_pickle_rio(self):
with create_tmp_geotiff() as (tmp_file, expected):
with xr.open_rasterio(tmp_file) as rioda:
temp = pickle.dumps(rioda)
actual = pickle.loads(temp)
assert_equal(actual, rioda)
with pickle.loads(temp) as actual:
assert_equal(actual, rioda)

def test_ENVI_tags(self):
rasterio = pytest.importorskip('rasterio', minversion='1.0a')
Expand Down

0 comments on commit 99c9661

Please sign in to comment.