We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2d8aa3 commit 4dabee3Copy full SHA for 4dabee3
xarray/tests/test_dataarray.py
@@ -6836,6 +6836,9 @@ def test_delete_coords():
6836
6837
6838
def test_deepcopy_obj_array():
6839
- x0 = DataArray(np.array([object()]))
+ class Dummy:
6840
+ pass
6841
+
6842
+ x0 = DataArray(np.array([Dummy()]))
6843
x1 = deepcopy(x0)
6844
assert x0.values[0] is not x1.values[0]
xarray/tests/test_dataset.py
@@ -6457,6 +6457,9 @@ def test_weakref():
6457
6458
6459
6460
- x0 = Dataset(dict(foo=DataArray(np.array([object()]))))
6461
6462
6463
+ x0 = Dataset(dict(foo=DataArray(np.array([Dummy()]))))
6464
6465
assert x0["foo"].values[0] is not x1["foo"].values[0]
0 commit comments