1
1
Fork 0
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:
Paul Moore 2018-07-30 14:19:41 +01:00
parent b2b62958e6
commit 65d5b47434

View file

@ -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)