summaryrefslogtreecommitdiff
path: root/pkg_resources/tests/test_pkg_resources.py
Commit message (Collapse)AuthorAgeFilesLines
* Handle Python3.12a7 compatibility problemsAnderson Bravalheri2023-04-191-0/+8
|
* Consistently use unittest.mock in testsMiro Hrončok2022-10-171-4/+1
| | | | | | | - 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)
* Remove Python 2 compatibilityJason R. Coombs2020-08-161-30/+8
|
* 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-191-3/+5
|
* 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
|
* 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 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 Python 3 syntax for new-style clasessJason R. Coombs2018-06-031-3/+5
|
* Feed the hobgoblins (delint).Jason R. Coombs2018-03-061-2/+4
|
* Add testcase for pkg_resources.ZipProvider.resource_listdirDoug Greiman2017-12-111-0/+35
|
* 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.
* Revert "Merge pull request #933 from pypa/feature/581-depend-not-bundle"Jason R. Coombs2017-02-241-1/+1
| | | | | This reverts commit 089cdeb489a0fa94d11b7307b54210ef9aa40511, reversing changes made to aaec654d804cb78dbb6391afff721a63f26a71cd.
* Strip out vendored packages and require them instead. Ref #581.Jason R. Coombs2017-01-011-1/+1
|
* Fix quantity of blank lines.stepshal2016-10-181-4/+1
|
* Fix quantity of blank lines after code object, class of function definition.stepshal2016-08-201-1/+7
|
* Always use Python 3 version of mapJason R. Coombs2016-01-161-0/+2
|
* Add test for regression on Python 3 when LANG=C and there is non-ascii in ↵Jason R. Coombs2015-12-011-1/+5
| | | | the metadata file before the version. Ref #469.
* Rewrite test to use distutils' install_egg_info to generate the metadata.Jason R. Coombs2015-11-281-10/+11
|
* Rewrite test to simply create the egg_info.Jason R. Coombs2015-11-281-80/+35
|
* Rename test to match intention.Jason R. Coombs2015-11-281-1/+1
|
* Move test into pkg_resources testsJason R. Coombs2015-11-281-0/+96
|
* Moved test_resources and test_pkg_resources to pkg_resources package.Jason R. Coombs2015-01-031-0/+111