aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_compat.py
Commit message (Collapse)AuthorAgeFilesLines
* [test_compat] Do not use dash in env variables' namesSergey M․2017-03-261-3/+3
|
* [compat] Fix compat_shlex_split for non-ASCII inputYen Chi Hsuan2016-07-071-0/+1
| | | | Closes #9871
* [test/compat] compat_shlex_split: test with newlinesJaime Marquínez Ferrándiz2016-07-011-0/+1
|
* [compat] Fix for XML with <!DOCTYPE> in Python 2.7 and 3.2Yen Chi Hsuan2016-05-231-0/+6
| | | | | Such XML documents cause DeprecationWarning if python is run with `-W error`
* [compat] Rename struct_(un)pack to compat_struct_(un)packYen Chi Hsuan2016-05-101-2/+2
|
* [utils,compat] Move struct_pack and struct_unpack to compat.pyYen Chi Hsuan2016-05-101-0/+5
|
* [test_compat] Remove unused importSergey M․2016-05-091-1/+0
|
* [test_compat] Avoid None values for compat_setenvSergey M․2016-05-091-1/+1
|
* [test_compat] Use compat_setenvSergey M․2016-05-091-7/+3
|
* [compat] Add compat_setenvSergey M․2016-05-091-0/+8
|
* [compat] Handle tuples properly in urlencode()Yen Chi Hsuan2016-04-061-0/+4
| | | | Fixes #9055
* [test_compat] Add tests for compat_urllib_parse_urlencodeSergey M․2016-03-261-0/+7
|
* [compat] compat_etree_fromstring: also decode the text attributeJaime Marquínez Ferrándiz2015-10-261-1/+10
| | | | Deletes parse_xml from utils, because it also does it.
* [compat] compat_etree_fromstring: only decode bytes objectsJaime Marquínez Ferrándiz2015-10-251-1/+2
|
* Use a wrapper around xml.etree.ElementTree.fromstring in python 2.x (#7178)Jaime Marquínez Ferrándiz2015-10-251-0/+7
| | | | 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).
* [test_compat] Fix typoSergey M․2015-09-051-1/+1
|
* [test_compat] Add test for compat_shlex_splitSergey M․2015-09-051-0/+4
|
* [test_compat] Add tests for compat_urllib_parse_unquote_plusSergey M․2015-07-171-0/+7
|
* [test_compat] Remove redundant testSergey M․2015-07-171-1/+0
|
* [test_compat] Make tests more idiomaticSergey M․2015-07-171-17/+16
|
* Add tests for compat_urllib_parse_unquotefnord2015-07-171-0/+20
|
* [test/test_compat] Restore the old value of the HOME environment variableJaime Marquínez Ferrándiz2014-11-191-0/+2
| | | | | | | 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)
* [test_compat] Ignore unicode_literalsPhilipp Hagemeister2014-11-031-1/+1
|
* [util] Move compatibility functions out of utilPhilipp Hagemeister2014-11-021-0/+44
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 .