Allow unicode when dumping yaml (#10607)

This commit is contained in:
Andrey authored and Paulus Schoutsen committed 2017-11-15 18:24:08 -08:00
1 parent 3a0c749a12
commit d5cba0b716
2 files changed
+6 -1

No files matched your search

+4
View File
@@ -267,6 +267,10 @@ class TestYaml(unittest.TestCase):
"""The that the dump method returns empty None values."""
assert yaml.dump({'a': None, 'b': 'b'}) == 'a:\nb: b\n'
def test_dump_unicode(self):
"""The that the dump method returns empty None values."""
assert yaml.dump({'a': None, 'b': 'привет'}) == 'a:\nb: привет\n'
FILES = {}