1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

20 commits

Author SHA1 Message Date
Anthony Sottile e21e2d3f8f Upgrade syntax in ./tests
Changes were automated via https://github.com/asottile/pyupgrade

See #4921
2017-12-14 21:59:41 -08:00
Benoit Pierre e792c48ac8 tests: speedup testsuite
Speedup virtualenv creation: create one (per session) relocatable
virtual environment, and then just make a copy of the resulting tree
when a new virtualenv is needed.
2017-09-02 02:19:55 +02:00
Benoit Pierre 3dd4a446f7 tests: fix virtualenv support when using PyPy 3 2017-09-02 02:18:33 +02:00
Pradyun S. Gedam 1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Donald Stufft cae136fc8e Update to deal with latest version of virtualenv 2016-01-19 12:23:52 -05:00
Donald Stufft 28e94c7a2e Don't install wheel inside our virtual environment 2015-05-21 23:49:28 -04:00
Robert Collins 0692704c89 Fix VirtualEnvironment repr for Python2.6.
(cherry picked from commit b424e40d375851beea683f7dcdbe5134216a09b0)
2015-04-07 08:00:49 -04:00
Donald Stufft c06f84a9d7 Merge pull request #2557 from msabramo/test_venv_dont_compile_pip
tests: install pip w/ --no-compile
2015-03-18 22:36:23 -04:00
Marc Abramowitz fd29593e46 Better traceback on venv pip install fail
Instead of:

    tests/conftest.py:146: in virtualenv
        pip_source_dir=pip_src,
    tests/lib/venv.py:45: in create
        obj._create(clear=clear)
    tests/lib/venv.py:68: in _create
        raise Exception(p.stderr)
    E   Exception: None

We get the more informative:

    tests/conftest.py:146: in virtualenv
        pip_source_dir=pip_src,
    tests/lib/venv.py:45: in create
        obj._create(clear=clear)
    tests/lib/venv.py:71: in _create
        output=p.stdout,
    E   CalledProcessError: Command '[Path(u'/private/var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/pytest-675/test_freeze_basic0/workspace/venv/bin/python'), 'setup.py', 'installxx']' returned non-zero exit status 1
2015-03-18 07:35:22 -07:00
Marc Abramowitz e9a7fb4e49 tests: install pip w/ --no-compile
For me, this speeds up `py.test tests/functional/test_freeze.py` from 62
seconds to 54 seconds (about a 13% speedup).
2015-03-17 10:23:40 -07:00
Donald Stufft 3b918b1461 Use a real install instead of develop 2014-11-20 07:53:57 -05:00
Donald Stufft bcead5206b Hide output when installing pip 2014-07-01 00:20:16 -04:00
Marcus Smith 2264dc4398 lib path fixes for pypy tests 2014-03-29 20:17:10 -07:00
Donald Stufft 5a76a47d3b Fix code to handle the latest flake8 2014-03-26 18:24:19 -04:00
Donald Stufft 9f027337a8 Use Flake8 on the test of pip's Python files 2014-01-28 19:47:58 -05:00
Marcus Smith a7c522da97 fix references to req methods/classes after refactor 2014-01-12 10:05:11 -08:00
Paul Moore ba97b0c030 Fix tests using virtualenv on Windows.
Do not hard code bin as the location of the executables, as this is not
correct on Windows.
2013-10-24 21:26:38 +01:00
Donald Stufft 6a343fe460 Properly raise an error when it happens 2013-08-28 05:33:38 -04:00
Donald Stufft 3095571d8f Copy pip into the per test temporary location as well
Previously pip was always installed directly from the source tree
however this causes concurrency issues so it is now copied into
the temporary directory and installed from there.
2013-08-27 06:49:40 -04:00
Donald Stufft 17cfdc5b62 Refactor tests.lib into classes that can be used to modify state 2013-08-27 06:41:55 -04:00