summaryrefslogtreecommitdiff
path: root/tests/testutils/python_repo.py
Commit message (Collapse)AuthorAgeFilesLines
* tests: Use pytest.raise() instead of checking for return codeBenjamin Schubert2019-12-021-2/+1
| | | | | | This gives a potentially more explicit understanding of what went wrong, and pytest can give better information about that exception than just us asserting the return code.
* Reformat code using BlackChandan Singh2019-11-141-26/+19
| | | | | | | As discussed over the mailing list, reformat code using Black. This is a one-off change to reformat all our codebase. Moving forward, we shouldn't expect such blanket reformats. Rather, we expect each change to already comply with the Black formatting style.
* tests: Allow `python_repo` to install nested package depsShahwat Dalal2019-05-141-4/+10
| | | | | | In order to ensure that pip_source is pulling transitive dependencies, adapted python_repo to use `install_reqiures` in its default setup script.
* tests/testutil/python_repo.py: fixed executable path when running pipfixed-bug-for-pip-testShahwat Dalal2019-04-261-1/+2
| | | | | Using `sys.executable` is a safer option as that is the interpreter that is currently being used
* tests:lint: reorder imports for consistencyBenjamin Schubert2019-03-201-1/+2
| | | | | - Remove all wrong-import-order from pylint - Order some subgroups of imports
* tests/testutils/python_repo.py: Use subprocess to run sdistTristan Van Berkom2019-01-181-2/+4
| | | | | | | | | | | | | The current approach using setuptools.sandbox.run_setup() was causing a spurious (but highly frequent) failure where setuptools gets mixed up with it's manipulation of sys.modules and hits a RuntimeError as a dictionary changes size while being iterated over. For instance: https://gitlab.com/BuildStream/buildstream/-/jobs/147967307 Since this already happens in an isolated virtual environment created by tox, we should not need additional sandboxing here from setuptools, and launching this as a subprocess will be safer.
* plugins/sources/pip.py: Accomodate characters '-','.','_' for packagesctolentino82018-11-021-0/+128