summaryrefslogtreecommitdiff
path: root/_test/roundtrip.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-16 09:49:03 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-16 09:49:03 +0200
commit81fdb659f35a533c29fc163ac679d0c6068385d9 (patch)
tree20a5e6c809cd8931483e6065da34a5c8db0fd8ac /_test/roundtrip.py
parent97ffa8425050d219b42a35e198302f8451f6e303 (diff)
downloadruamel.yaml-81fdb659f35a533c29fc163ac679d0c6068385d9.tar.gz
allow simple mappings as mapping keys
Diffstat (limited to '_test/roundtrip.py')
-rw-r--r--_test/roundtrip.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/_test/roundtrip.py b/_test/roundtrip.py
index 462dfc6..fa9d189 100644
--- a/_test/roundtrip.py
+++ b/_test/roundtrip.py
@@ -102,6 +102,7 @@ def round_trip(
explicit_start=None,
explicit_end=None,
version=None,
+ dump_data=None,
):
"""
inp: input string to parse
@@ -113,6 +114,8 @@ def round_trip(
if extra is not None:
doutp += extra
data = round_trip_load(inp, preserve_quotes=preserve_quotes)
+ if dump_data:
+ print('data', data)
if intermediate is not None:
if isinstance(intermediate, dict):
for k, v in intermediate.items():