summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-17 08:22:21 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-17 08:22:21 +0200
commitc2b39d26c0aa7d6536d60ba0329b19e3d943a818 (patch)
tree47e82e6958f9fdfd010cb6cb84d4965778a940af /_test
parent310a4f9738ce6212dc684479784c15a50fbc0f5f (diff)
downloadruamel.yaml-c2b39d26c0aa7d6536d60ba0329b19e3d943a818.tar.gz
test added re #222 dumping as YAML 1.1
Diffstat (limited to '_test')
-rw-r--r--_test/test_issues.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py
index 681dc6d..76fae01 100644
--- a/_test/test_issues.py
+++ b/_test/test_issues.py
@@ -278,3 +278,11 @@ class TestIssues:
- e # 5
""")
assert buf.getvalue() == exp
+
+ def test_issue_22(self):
+ import ruamel.yaml
+ from ruamel.yaml.compat import StringIO
+ buf = StringIO()
+ ruamel.yaml.safe_dump(['012923'], buf)
+ assert buf.getvalue() == "['012923']\n"
+