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

86 commits

Author SHA1 Message Date
Benoit Pierre
6a930d5233 tests: remove old workaround for Travis failures 2017-09-02 02:18:33 +02:00
Donald Stufft
95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Xavier Fernandez
b709b1ef4a Add a common_wheels fixtures providing wheel & setuptools wheels 2017-07-21 18:08:53 +02:00
Pradyun S. Gedam
a24c59fc27 Only apply re-runs marker on CI runs (#4541) 2017-06-17 12:21:14 -04:00
Pradyun S. Gedam
9923c1ad7e Sort imports and minor Flake8 changes (#4520)
* Run isort on the codebase

Command: isort --recursive --skip __main__.py --skip _vendor -o pip._vendor -sd THIRDPARTY -m 5 -p pip -p tests ./pip ./tests

* 📰
2017-06-13 14:17:00 +02:00
Pradyun S. Gedam
8d66105cd7 Mark network tests as flaky 2017-05-19 08:48:45 +05:30
Pradyun S. Gedam
1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Alex Gaynor
bc956b6a2c Sigh, stdout is not a consistent type 2017-03-26 11:49:02 -04:00
Alex Gaynor
96713c35a8 Normalize imports 2017-03-26 11:18:29 -04:00
Alex Gaynor
ef7db41728 Do the monkey patch instead 2017-03-26 11:17:02 -04:00
Bruno Oliveira
7aa30dbb8e Change "tmpdir" fixture to work with latest pytest
Re-using the built-in tmpdir fixture fixes pytest-dev/pytest#1083

Also with latest pytest there's no need to use --assert=plain on py35 anymore

Fixes #3699
Fixes pytest-dev/pytest#1083
2016-07-21 21:50:34 -03:00
Donald Stufft
5bbf3fd3ff Only delete the user cache if it's populated 2015-05-13 18:11:19 -04:00
Robert Collins
08acb6670d Issue #2140: Build wheels automatically
Building wheels before installing elminates a cause of broken environments -
where install fails after we've already installed one or more packages.

If a package fails to wheel, we run setup.py install as normally.
2015-04-13 18:33:07 +12:00
Marc Abramowitz
60d09fe748 Ignore DoctestTextfile when collecting
Prevents this error:

    $ tox -e py27 -- -m unit
    ...
    INTERNALERROR>   File "/Users/marca/dev/git-repos/pip/tests/conftest.py", line 16, in pytest_collection_modifyitems
    INTERNALERROR>     item.module.__file__,
    INTERNALERROR> AttributeError: 'DoctestTextfile' object has no attribute 'module'
2015-03-19 14:24:25 -07:00
Marc Abramowitz
7bd8dafef6 conftest: Copy a few less things to virtualenvs 2015-03-15 10:55:36 -07:00
Marc Abramowitz
b02c3f8acb conftest: Copy less stuff to virtualenvs
This shaves a few seconds off each test.
2015-03-15 04:45:50 -07:00
Donald Stufft
0bc8aa5622 Style fixes for the latest flake8 2015-02-24 07:46:10 -05:00
Donald Stufft
c0e8753c6e Don't check pip version in tests 2014-12-23 19:37:22 -05:00
Davidovich
97f3cebe1b Do not use hardcoded slash separator for windows support 2014-12-16 21:43:34 -05:00
Donald Stufft
68c0b472a7 Run the unit tests before the integration tests 2014-06-30 20:00:35 -04:00
Donald Stufft
97d8bee705 Isolate our tests from the running user's configuration 2014-05-07 16:17:07 -04:00
Paul Moore
92c3a673fd Fix tests on Windows, where Path objects were changing to strings mysteriously... 2014-04-28 15:38:39 +01:00
Donald Stufft
1e29f9eb6f Cleanup after each test case 2014-02-10 13:01:52 -05:00
Donald Stufft
9f027337a8 Use Flake8 on the test of pip's Python files 2014-01-28 19:47:58 -05:00
Donald Stufft
6c36e77e16 Work around Python 3.2 import issues 2013-09-05 10:39:28 -04:00
Donald Stufft
3c733ca0f5 Fix the exclusion patterns
We need the docs directory for ``python setup.py``
2013-08-28 05:32:57 -04:00
Donald Stufft
37deb59853 shutil.ignore_patterns does not want trailing slashes
A trailing slash in a directory name is essentially a noop unless
the directory name itself contains a trailing slash.
2013-08-28 05:17:36 -04:00
Donald Stufft
2ab9d6bdfb Ignore the directories that tox creates 2013-08-28 05:05:07 -04:00
Donald Stufft
4516a34e1c Add an extra newline 2013-08-27 06:49:40 -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
86f5ebb4ca Work around a Python 3.2 bug with pytest and pytest-xdist 2013-08-27 06:49:40 -04:00
Donald Stufft
bacf3a0091 Wrap the test data in a helper that will copy to the tmpdir
This is needed because the various activities that exericsing the
tests do will cause files to change inside this data directory. If
we do not make it test specific then we run into concurrency issues.
2013-08-27 06:47:26 -04:00
Donald Stufft
9ed8c1acc7 Namespace the PipTestEnvironment inside the temporary directory 2013-08-27 06:47:26 -04:00
Donald Stufft
6b02bc7899 Use monkeypatch to force shutil to not use the fd functions 2013-08-27 06:47:26 -04:00
Donald Stufft
f70b2a187c Use our classes from tests.lib.* in pytest fixtures 2013-08-27 06:41:55 -04:00
Donald Stufft
bd127f8aba Shadow the built in tmpdir fixture to use our Path object
* Uses the same generation method as the built in tmpdir, simply
  returns a different object type.
2013-08-27 06:41:55 -04:00