summaryrefslogtreecommitdiff
path: root/_test/test_issues.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2019-08-15 13:14:08 +0200
committerAnthon van der Neut <anthon@mnt.org>2019-08-15 13:14:08 +0200
commitc3ac95be03b0166b5910675f1d07c4d00db9dff8 (patch)
tree4f176d05d3ae63b68a50b7bbcf027d4fb2088de3 /_test/test_issues.py
parentff8e03fe5542a9d7930a5720450c59bb9e9eaaf3 (diff)
downloadruamel.yaml-0.16.2.tar.gz
allow # in 1.2 URI's0.16.2
fixes issue #305 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to '_test/test_issues.py')
-rw-r--r--_test/test_issues.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py
index 9b301a9..5606122 100644
--- a/_test/test_issues.py
+++ b/_test/test_issues.py
@@ -853,11 +853,20 @@ class TestIssues:
def test_issue_304(self):
inp = """
- %YAML 1.2
- %TAG ! tag:example.com,2019:
- ---
- !foo null
- ...
+ %YAML 1.2
+ %TAG ! tag:example.com,2019:
+ ---
+ !foo null
+ ...
+ """
+ d = na_round_trip(inp) # NOQA
+
+ def test_issue_305(self):
+ inp = """
+ %YAML 1.2
+ ---
+ !<tag:example.com,2019/path#foo> null
+ ...
"""
d = na_round_trip(inp) # NOQA