Allow unicode when dumping yaml (#10607)
This commit is contained in:
1 parent
3a0c749a12
commit
d5cba0b716
2 files changed
+6
-1
No files matched your search
@@ -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 = {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user