qutebrowser/tests
Florian Bruhin 9ac2dbcc80 Disallow surrogate escapes in dicts and lists in the config
In Dict.to_str() and List.to_str() we use json.dump to get a value. However,
JSON includes surrogate escapes in the dumped values, which breaks round trips.

>>> yaml.load(json.dumps({'\U00010000': True}))
{'\ud800\udc00': True}

>>> yaml.load(json.dumps({'\U00010000': True}, ensure_ascii=False))
yaml.reader.ReaderError: unacceptable character #x10000: special characters are not allowed

See:
https://stackoverflow.com/a/38552626/2085149
https://news.ycombinator.com/item?id=12798032
2017-07-04 15:09:23 +02:00
..
end2end Rename content.javascript.can_*_windows to _tabs 2017-07-04 15:08:04 +02:00
helpers Avoid calling configdata.init() in tests 2017-07-04 15:08:04 +02:00
manual Adjust test settings 2017-07-04 15:08:02 +02:00
unit Disallow surrogate escapes in dicts and lists in the config 2017-07-04 15:09:23 +02:00
conftest.py Import qutebrowser.app in conftest 2017-07-04 15:08:04 +02:00
test_conftest.py Finally update copyrights... 2017-05-09 21:37:03 +02:00