Allow unicode when dumping yaml (#10607)
This commit is contained in:
parent
3a0c749a12
commit
d5cba0b716
2 changed files with 6 additions and 1 deletions
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue