1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/tests/functional
Tzu-ping Chung 2339a7a859 Fix installation of wheel with non-ASCII entries
This mainly deals with correctly recording the wheel content in the
RECORD metadata. This metadata file must be written in UTF-8, but the
actual files need to be installed to the filesystem, the encoding of
which is not (always) UTF-8. So we need to carefully handle file name
encoding/decoding when comparing RECORD entries to the actual file.

The fix here makes sure we always use the correct encoding by adding
strict type hints. The entries in RECORD is decoded/encoded with UTF-8
on the read/write boundaries to make sure we always deal with text
types. A type-hint-only type RecordPath is introduced to make sure this
is enforced (because Python 2 "helpfully" coerces str to unicode with
the wrong encoding).
2020-05-19 16:03:51 +08:00
..
__init__.py break up tests dir into data, unit tests, and functional tests 2013-05-29 13:41:12 -07:00
test_broken_stdout.py Use the requested log level when handling broken stdout pipe. 2019-01-21 12:45:59 -08:00
test_cache.py Merge pull request #8095 from hugovk/pip-cache-dir2 2020-04-28 00:57:10 +05:30
test_check.py Addressed review comments 2020-04-08 13:59:33 +05:30
test_cli.py Revert "fix test_entrypoints_work test" 2020-05-13 02:50:10 +05:30
test_completion.py Convert the remaining '%' formatters to '.format'. Fixes #6973. 2020-03-06 12:43:03 -05:00
test_configuration.py fix-5963: assert error message 2019-05-12 22:28:45 +03:00
test_debug.py tests: functional: Add new test_debug vendored version test 2020-04-11 01:54:57 +03:00
test_download.py Use valid wheel for functional download tests 2020-01-04 23:08:43 +01:00
test_freeze.py Add a reason why we're xfail-ing this test 2020-05-14 15:15:57 +08:00
test_hash.py Rename compatible functions in tests.lib.path.Path. 2019-07-02 18:48:44 -04:00
test_help.py Only import a Command class when it is actually needed. 2019-07-26 23:30:26 -04:00
test_install.py Fix some test failures related to message differences 2020-05-15 14:17:47 +01:00
test_install_check.py Remove unnecessary expect_error. 2019-08-10 22:39:57 -04:00
test_install_cleanup.py 👹 Feed the hobgoblins (delint). 2020-03-06 12:43:10 -05:00
test_install_compat.py 👹 Feed the hobgoblins (delint). 2020-03-06 12:43:10 -05:00
test_install_config.py Convert the remaining '%' formatters to '.format'. Fixes #6973. 2020-03-06 12:43:03 -05:00
test_install_direct_url.py Add direct_url support to InstallRequirement 2020-04-01 22:57:00 +02:00
test_install_extras.py Fix some test failures related to message differences 2020-05-15 14:17:47 +01:00
test_install_force_reinstall.py Modify test to unify site_packages path usages 2020-01-14 21:56:23 +08:00
test_install_index.py String formatting updated 2020-01-23 18:09:59 +05:30
test_install_reqs.py Upgrade flake8 to 3.8.1 2020-05-18 21:58:26 +05:30
test_install_upgrade.py 👹 Feed the hobgoblins (delint). 2020-03-06 12:43:10 -05:00
test_install_user.py 👹 Feed the hobgoblins (delint). 2020-03-06 12:43:10 -05:00
test_install_vcs_git.py 👹 Feed the hobgoblins (delint). 2020-03-06 12:43:10 -05:00
test_install_wheel.py Fix installation of wheel with non-ASCII entries 2020-05-19 16:03:51 +08:00
test_list.py Fix incorrect comment in tests 2020-04-10 19:02:57 +05:30
test_new_resolver.py Merge pull request #8186 from uranusjr/install-req-from-dist-line-rewrite 2020-05-15 22:33:03 +01:00
test_new_resolver_user.py Add tests for --user installs 2020-05-06 03:48:34 +08:00
test_no_color.py Remove unused imports 2018-06-13 13:17:30 +05:30
test_pep517.py Switch pip's use of pytoml -> toml 2020-04-14 13:07:17 +05:30
test_requests.py Switch pip to use Warehouse by default 2018-04-16 15:54:11 -04:00
test_search.py Use application context manager for PipSession. 2019-09-07 09:46:48 -04:00
test_show.py Addressed review comments 2020-04-08 13:59:33 +05:30
test_uninstall.py Revert "fix test_uninstall_console_scripts" 2020-05-13 02:50:07 +05:30
test_uninstall_user.py 👹 Feed the hobgoblins (delint). 2020-03-06 12:43:10 -05:00
test_vcs_bazaar.py Hide security-sensitive strings in VCS command log messages (#6890) 2019-08-21 03:22:57 -07:00
test_vcs_git.py Normailze case in tests 2020-01-15 17:50:41 +08:00
test_vcs_mercurial.py Normailze case in tests 2020-01-15 17:50:41 +08:00
test_warning.py Add option to silence warnings related to deprecation of Python versions (#6739) 2019-12-15 09:59:34 +08:00
test_wheel.py Avoid a test dependency on a C compiler, skip the test on Windows 2020-03-19 23:50:41 +01:00
test_yaml.py make flake8 happy 2020-04-28 23:43:00 -05:00