aboutsummaryrefslogtreecommitdiff
path: root/test/test_compat.py
AgeCommit message (Collapse)Author
2024-11-17[cleanup] Deprecate more compat functions (#11439)sepro
Authored by: seproDev
2024-06-12[cleanup] Add more ruff rules (#10149)sepro
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
2023-07-22[compat] Ensure submodules are imported correctlypukkandan
Closes #7663
2023-02-08[dependencies] Standardize `Cryptodome` importspukkandan
2022-07-18Remove Python 3.6 supportpukkandan
Closes #3764
2022-06-25[compat] Remove deprecated functions from core codepukkandan
2022-06-25[cleanup] Consistent style for file headspukkandan
2022-06-25[compat] Remove more functionspukkandan
Removing any more will require changes to a large number of extractors
2022-06-25[compat] Fix `compat.WINDOWS_VT_MODE`pukkandan
2022-05-09[cleanup] Minor fixes (See desc)pukkandan
* [youtube] Fix `--youtube-skip-dash-manifest` * [build] Use `$()` in `Makefile`. Closes #3684 * Fix bug in 385ffb467b2285e85a2a5495b90314ba1f8e0700 * Fix bug in 43d7f5a5d0c77556156a3f8caa6976d3908a1e38 * [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode` * [utils] LazyList: Expose unnecessarily "protected" attributes and other minor cleanup
2022-04-26[compat] Ensure submodules are correctly wrappedpukkandan
2022-04-18[compat] Split into sub-modules (#2173)felix
Authored by: fstirlitz, pukkandan
2022-04-18[cleanup] Misc cleanup and refactor (#2173)pukkandan
2022-04-12[cleanup] Sort importspukkandan
Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
2022-04-12[cleanup] Upgrade syntaxpukkandan
Using https://github.com/asottile/pyupgrade 1. `__future__` imports and `coding: utf-8` were removed 2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format` 3. f-strings were cherry-picked from `pyupgrade --py36-plus` Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
2022-04-12[cleanup] Mark some compat variables for removal (#2173)pukkandan
Authored by fstirlitz, pukkandan
2021-06-06[cleanup] Point all shebang to `python3` (#372)felix
Authored by: fstirlitz
2021-02-25Completely change project name to yt-dlp (#85)Pccode66
* All modules and binary names are changed * All documentation references changed * yt-dlp no longer loads youtube-dlc config files * All URLs changed to point to organization account Co-authored-by: Pccode66 Co-authored-by: pukkandan
2021-01-07Fix/disable tests2021.01.07pukkandan
The disabled tests needs to be fixed later Tests for FormatSort, Multistreams also needs be created
2020-12-13Add --write-*-link by h-h-h-hpukkandan
Authored-by: h-h-h-h
2020-09-02[skip travis] renamingUnknown
to avoid using same folder when using pip install for example
2019-03-06[test] Fix test_compat_etree_ElementSergey M․
2019-03-06[compat] Introduce compat_etree_ElementSergey M․
2018-11-23[tests] Fix invalid escape sequencesSergey M․
2017-03-26[test_compat] Do not use dash in env variables' namesSergey M․
2016-07-07[compat] Fix compat_shlex_split for non-ASCII inputYen Chi Hsuan
Closes #9871
2016-07-01[test/compat] compat_shlex_split: test with newlinesJaime Marquínez Ferrándiz
2016-05-23[compat] Fix for XML with <!DOCTYPE> in Python 2.7 and 3.2Yen Chi Hsuan
Such XML documents cause DeprecationWarning if python is run with `-W error`
2016-05-10[compat] Rename struct_(un)pack to compat_struct_(un)packYen Chi Hsuan
2016-05-10[utils,compat] Move struct_pack and struct_unpack to compat.pyYen Chi Hsuan
2016-05-09[test_compat] Remove unused importSergey M․
2016-05-09[test_compat] Avoid None values for compat_setenvSergey M․
2016-05-09[test_compat] Use compat_setenvSergey M․
2016-05-09[compat] Add compat_setenvSergey M․
2016-04-06[compat] Handle tuples properly in urlencode()Yen Chi Hsuan
Fixes #9055
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 .