mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 14:50:16 +00:00
Have the tests cleanup Pipfile after itself.
This commit is contained in:
@@ -357,6 +357,8 @@ class _PipenvInstance:
|
||||
|
||||
def __exit__(self, *args):
|
||||
warn_msg = 'Failed to remove resource: {!r}'
|
||||
if self.pipfile_path:
|
||||
os.remove(self.pipfile_path)
|
||||
if self.chdir:
|
||||
os.chdir(self.original_dir)
|
||||
self.path = None
|
||||
|
||||
Reference in New Issue
Block a user