summaryrefslogtreecommitdiff
path: root/pkg_resources/tests
Commit message (Collapse)AuthorAgeFilesLines
* Handle Python3.12a7 compatibility problemsAnderson Bravalheri2023-04-192-0/+12
|
* Add DeprecationWarning to `pkg_resources.declare_namespace`Anderson Bravalheri2023-02-131-4/+7
|
* Consistently use unittest.mock in testsMiro Hrončok2022-10-172-5/+2
| | | | | | | - Some tests used unittest.mock from the standard library - Some tests used mock from PyPI - Some tests tried to import unittest.mock with a fallback to mock (the import never fails on Python 3.7+, older Pythons are not supported)
* Add tests for normalized package name resolutionŁukasz Daniluk2022-03-241-1/+20
| | | | | | | Due to PEP 503 package requirements might be specified using normalized name which won't be resolved by WorkingSet. Signed-off-by: Łukasz Daniluk <lukasz.dan@gmail.com>
* Replace invalid local version with a valid form.Jason R. Coombs2021-11-151-1/+1
|
* Failing test for #2489Tim Hatch2020-12-212-0/+9
|
* Fix tests with pytest 6.2Chih-Hsuan Yen2020-12-131-2/+2
| | | | | | | | The latest pytest deprecates pytest.yield_fixture in favor of pytest.fixture [1]. The changelog [2] says that both are the same. [1] https://github.com/pytest-dev/pytest/pull/7988 [2] https://docs.pytest.org/en/stable/changelog.html#pytest-6-2-0-2020-12-12
* Remove Python 2 compatibilityJason R. Coombs2020-08-163-36/+8
|
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-05-121-2/+2
| | | | Fixes #2107
* To assess the directoriness of an entry, include the path of that entry.Jason R. Coombs2020-05-101-1/+1
|
* Restore parameterJason R. Coombs2020-05-101-1/+1
|
* Stop recognizing files ending with .dist-info as distNguyễn Gia Phong2020-04-241-0/+8
| | | | As proposed in PEP 376, dist-info distributions must be directories.
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-01-192-5/+6
|
* test: drop pkg_resources tests dependency on easy_installBenoit Pierre2019-11-139-45/+39
|
* Merge pull request #1814 from benoit-pierre/fix_requirement_hash/equalityJason R. Coombs2019-10-271-0/+17
|\ | | | | pkg_resources: fix ``Requirement`` hash/equality implementation
| * pkg_resources: fix ``Requirement`` hash/equality implementationBenoit Pierre2019-08-131-0/+17
| | | | | | | | Take PEP 508 direct URL into account.
* | Fixes for python3.10Anthony Sottile2019-08-171-1/+1
|/
* Fix #1790 : Include the file path in get_metadata() UnicodeDecodeErrors (#1791)Chris Jerdonek2019-07-131-0/+54
| | | | Include the file path in get_metadata() UnicodeDecodeErrors.
* tests: fix `test_distribution_version_missing` to work with pytest>=5.0Benoit Pierre2019-06-301-1/+1
|
* Include file path when Version: missingChris Jerdonek2019-04-031-0/+84
| | | | | | | | | | Related to pip's github issue pypa/pip#6194. This has come up in pip's issue tracker (github) multiple times: - pypa/pip#6177 - pypa/pip#6283 - pypa/pip#6194
* Remove usage relying on deprecated and ambiguous leading slash. Ref #1635Jason R. Coombs2019-01-201-2/+0
|
* Merge pull request #1521 from uranusjr/normalize-path-normpathPaul Ganssle2018-11-101-0/+53
|\ | | | | Call os.path.normpath to normalize paths for comp
| * Test normalize_path on various inputsTzu-ping Chung2018-10-291-4/+52
| |
| * Call os.path.normpath to normalize paths for compTzu-ping Chung2018-10-251-0/+5
| |
* | Add unit tests for PkgResourcesDeprecationWarningrobinjhuang2018-10-281-1/+10
|/
* Add test for cache_path race conditionPaul Ganssle2018-07-121-1/+32
| | | | | | | This mocks out the isdir call so that the directory is created immediately after you determine whether or not it exists, thus simulating a race condition between two threads or processes creating the same directory.
* Use text_type and string_types from sixJason R. Coombs2018-06-031-7/+3
|
* Use raw strings for regular expressionsJason R. Coombs2018-06-031-2/+2
|
* Use Python 3 syntax for new-style clasessJason R. Coombs2018-06-032-4/+8
|
* Drop support for EOL Python 3.3Hugo2018-05-241-3/+3
|
* python 2.7 does not implement object.__dir__()jeffrey k eliasen2018-05-151-0/+11
|
* testsjeffrey k eliasen2018-05-151-0/+18
|
* Extract version comparisons as pytest parameters.Jason R. Coombs2018-03-171-84/+51
|
* Feed the hobgoblins (delint).Jason R. Coombs2018-03-064-17/+41
|
* Add testcase for pkg_resources.ZipProvider.resource_listdirDoug Greiman2017-12-111-0/+35
|
* Merge branch 'master' into drop-py26Jason R. Coombs2017-11-191-2/+2
|\
| * Clean up resource warnings during testsJon Dufresne2017-09-161-2/+2
| | | | | | | | | | | | | | | | | | | | When tests are invoked with the Python flag -Wall, warnings appear in the form of: ResourceWarning: unclosed file ... Close all files and resources deterministically to avoid such warnings. Most often, easiest to do using a context manager.
* | Merge branch 'master' into drop-py26Jason R. Coombs2017-09-034-5/+545
|\ \ | |/
| * pkg_resources: improve WorkingSet.resolve(replace_conflicting=True)Benoit Pierre2017-08-291-0/+478
| | | | | | | | | | | | | | | | Correctly replace conflicting distributions in sub-requirements if possible (instead of only for top-level requirements passed as arguments). Fix #1124.
| * Better detect unpacked eggsLeonardo Rochael Almeida2017-07-311-0/+65
| | | | | | | | | | | | Do not assume a directory named in `.egg` is an egg, unless it has an actual egg metadata directory. Closes #462
| * tests: switch back to mock instead of backports.unittest_mockBenoit Pierre2017-07-151-1/+1
| |
| * Merge branch 'master' into feature/re-vendor-sadfaceJason R. Coombs2017-05-301-1/+1
| |\
| | * Python 3.6 invalid escape sequence deprecation fixesVille Skyttä2017-02-241-1/+1
| | |
| * | Revert "Merge pull request #933 from pypa/feature/581-depend-not-bundle"Jason R. Coombs2017-02-242-3/+3
| |/ | | | | | | | | This reverts commit 089cdeb489a0fa94d11b7307b54210ef9aa40511, reversing changes made to aaec654d804cb78dbb6391afff721a63f26a71cd.
| * Rely on backports.unittest_mock plugin to make mock available on old Python ↵Jason R. Coombs2017-01-301-4/+1
| | | | | | | | versions. Ref #949.
| * Strip out vendored packages and require them instead. Ref #581.Jason R. Coombs2017-01-012-3/+3
| |
* | Drop support for Python 2.6, removing lots of compatibility code for a ↵Jason R. Coombs2016-12-091-18/+10
|/ | | | leaner, cleaner codebase. Fixes #878.
* Fix quantity of blank lines.stepshal2016-10-182-9/+3
|
* fix for extra names containing '-'Gabi Davar2016-08-231-0/+18
|
* Fix quantity of blank lines after code object, class of function definition.stepshal2016-08-203-1/+12
|