mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Add an environment variable to keep temporary directories when testing
This commit is contained in:
parent
b2b62958e6
commit
65d5b47434
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ def tmpdir(tmpdir):
|
|||
# Clear out the temporary directory after the test has finished using it.
|
||||
# This should prevent us from needing a multiple gigabyte temporary
|
||||
# directory while running the tests.
|
||||
tmpdir.remove(ignore_errors=True)
|
||||
if not 'PIPTEST_KEEP_TMPDIR' in os.environ:
|
||||
tmpdir.remove(ignore_errors=True)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
|
|
Loading…
Reference in a new issue