summaryrefslogtreecommitdiff
path: root/pkg_resources/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add missing whitespace after comma.stepshal2016-08-181-35/+35
|
* Merge pull request #744 from stepshal/comparisonJason R. Coombs2016-08-171-1/+1
|\ | | | | Fix comparison with None.
| * Fix comparison with None.insiv2016-08-171-1/+1
| |
* | Merge pull request #743 from stepshal/block-commentJason R. Coombs2016-08-171-1/+1
|\ \ | | | | | | Fix spacing after comment hash.
| * | Fix spacing after comment hash.insiv2016-08-171-1/+1
| |/
* | Merge pull request #741 from stepshal/operatorsJason R. Coombs2016-08-171-6/+6
|\ \ | | | | | | Add missing whitespace around operators.
| * | Add missing whitespace around operators.insiv2016-08-171-6/+6
| |/
* | Remove whitespace around parameter = sign.insiv2016-08-171-1/+1
|/
* Mark failing tests as xfail until they can be resolved. Ref #591.Jason R. Coombs2016-07-231-0/+5
|
* Always inject extra into the environment when evaluating markers. Fixes #544.Jason R. Coombs2016-04-151-9/+1
|
* Merge pull request #533 from s-t-e-v-e-n-k/compare-ep-attributesJason R. Coombs2016-04-071-1/+4
|\ | | | | Stop comparing repr()'s in TestEntryPoint
| * Stop comparing repr()'s in TestEntryPointSteve Kowalik2016-04-061-1/+4
| | | | | | | | | | | | | | | | | | In Python 3, the default order of iterables can not determined, so comparing the repr of objects that include tuples is not static like it is under Python 2. Compare the attributes of EntryPoint instead, making sure to sort .attrs and .extras. Closes: #526
* | Adjust expectation that 'extra' is not in the marker evaluation if no extras ↵Jason R. Coombs2016-04-071-3/+5
| | | | | | | | demanded the requirement.
* | Extract _ReqExtras to encapsulate that functionality and decouple it from ↵Jason R. Coombs2016-04-071-4/+19
| | | | | | | | WorkingSet.
* | Reinstate the or guard in WorkingSet._markers_passSteve Kowalik2016-04-061-0/+6
|/
* Restore evaluating environment markers in WorkingSetSteve Kowalik2016-04-051-5/+74
| | | | | | | | | | Correctly deal with parsed requirements that include extras as a marker inside WorkingSet that are populated from METADATA inside wheels, like we get from pip>=7. This partially reverts commit 04d10ff025e1cbef7ec93a2008c930e856045c8a. Closes: #523
* Drop unused safe_repr functionSteve Kowalik2016-04-011-11/+0
| | | | | When _assertIn was removed from test_resources, the safe_repr function was not dropped, leaving it with no callers, so drop it.
* Bypass environment marker evaluation in requirements resolution. Ref #523.Jason R. Coombs2016-03-311-0/+1
|
* Extract separate test for test_environment_markers in test_resources. Remove ↵Jason R. Coombs2016-03-311-2/+6
| | | | unused variable.
* Merge https://bitbucket.org/pypa/setuptools/pull-requests/185.Jason R. Coombs2016-03-291-0/+5
|\
| * Support environment markers in *_requires, via WorkingSet.Steve Kowalik2016-03-241-0/+5
| |