summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_test/test_issues.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py
index f4740cc..d37b297 100644
--- a/_test/test_issues.py
+++ b/_test/test_issues.py
@@ -93,6 +93,23 @@ class TestIssues:
""")
x = round_trip(yaml_str, preserve_quotes=True) # NOQA
+ def test_issue_150(self):
+ from ruamel.yaml import YAML
+
+ inp = """\
+ base: &base_key
+ first: 123
+ second: 234
+
+ child:
+ <<: *base_key
+ third: 345
+ """
+ yaml = YAML()
+ data = yaml.load(inp)
+ child = data['child']
+ assert 'second' in {**child}
+
def test_issue_160(self):
s = dedent("""\
root: