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 9a004d4 commit fe5ae9cCopy full SHA for fe5ae9c
xarray/tests/test_datatree.py
@@ -37,8 +37,9 @@ def test_bad_names(self):
37
class TestFamilyTree:
38
def test_dont_modify_parent_inplace(self):
39
# GH issue 9196
40
- root: DataTree = DataTree()
41
- DataTree(name="child", parent=root)
+ root: DataTree = DataTree(name="root")
+ child: DataTree = DataTree(name="child")
42
+ child.parent = root
43
assert root.children == {}
44
45
def test_dont_modify_children_inplace(self):
0 commit comments