aboutsummaryrefslogtreecommitdiff
path: root/test/test_compat.py
AgeCommit message (Collapse)Author
2016-03-26[test_compat] Add tests for compat_urllib_parse_urlencodeSergey M․
2015-10-26[compat] compat_etree_fromstring: also decode the text attributeJaime Marquínez Ferrándiz
Deletes parse_xml from utils, because it also does it.
2015-10-25[compat] compat_etree_fromstring: only decode bytes objectsJaime Marquínez Ferrándiz
2015-10-25Use a wrapper around xml.etree.ElementTree.fromstring in python 2.x (#7178)Jaime Marquínez Ferrándiz
Attributes aren't unicode objects, so they couldn't be directly used in info_dict fields (for example '--write-description' doesn't work with bytes).
2015-09-05[test_compat] Fix typoSergey M․
2015-09-05[test_compat] Add test for compat_shlex_splitSergey M․
2015-07-17[test_compat] Add tests for compat_urllib_parse_unquote_plusSergey M․
2015-07-17[test_compat] Remove redundant testSergey M․
2015-07-17[test_compat] Make tests more idiomaticSergey M․
2015-07-17Add tests for compat_urllib_parse_unquotefnord
2014-11-19[test/test_compat] Restore the old value of the HOME environment variableJaime Marquínez Ferrándiz
If the test was run before the YoutubeIE tests (for example by running "nosetests -v test/test_compat.py test/test_download.py -m 'Youtube_1|compat_expand'"), it wrote the signatures cache to the 'C:\Documents and Settings\тест\Application Data' folder. It failed due to a problem in the cache code and the write_json_file function (fixed in f03e33b89a622af13fa5275c46b63aaa4814c499)
2014-11-03[test_compat] Ignore unicode_literalsPhilipp Hagemeister
2014-11-02[util] Move compatibility functions out of utilPhilipp Hagemeister
utils is large enough without these compatibility functions. Everything that is present in newer versions of Python (i.e. with dev Python it's just an import) goes into compat.py . Everything else (i.e. youtube-dl-specific helpers) goes into utils.py .