Skip to content

Commit

Permalink
Try fix: Closes open file (for Windows error)
Browse files Browse the repository at this point in the history
```
WindowsError: [Error 32] The process cannot access the file because it
is being used by another process
```
  • Loading branch information
pwolfram committed Apr 3, 2017
1 parent 673e6dc commit 283c80f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ def test_read_byte_attrs_as_unicode(self):
actual = open_dataset(tmp_file)
expected = Dataset(attrs={'foo': 'bar'})
self.assertDatasetIdentical(expected, actual)
actual.close()

def test_encoding_unlimited_dims(self):
ds = Dataset({'x': ('y', np.arange(10.0))})
Expand Down

0 comments on commit 283c80f

Please sign in to comment.