diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-08-14 22:26:01 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-08-14 22:26:01 +0200 |
commit | cddd031430973470cefd7412c76bd633233569bb (patch) | |
tree | ee451fffd663a6c60b9154657143d01fe82cc505 /_test/test_version.py | |
parent | 82451b513ea33cce3f228216d5b99b8c046cf182 (diff) | |
download | ruamel.yaml-cddd031430973470cefd7412c76bd633233569bb.tar.gz |
fix for '{"in":{},"out":{}}' no longer parsing, reported by mjalkio on so0.15.30
Diffstat (limited to '_test/test_version.py')
-rw-r--r-- | _test/test_version.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/_test/test_version.py b/_test/test_version.py index 795c242..0c270d7 100644 --- a/_test/test_version.py +++ b/_test/test_version.py @@ -3,7 +3,7 @@ import pytest # NOQA import ruamel.yaml -from roundtrip import dedent, round_trip +from roundtrip import dedent, round_trip, round_trip_load def load(s, version=None): @@ -149,3 +149,7 @@ class TestIssue62: round_trip(s.format(''), preserve_quotes=True) # note the flow seq on the --- line! round_trip(s.format('%YAML 1.2\n--- '), preserve_quotes=True, version="1.2") + + def test_so_45681626(self): + # was not properly parsing + round_trip_load('{"in":{},"out":{}}') |