Have the tests cleanup Pipfile after itself.

This commit is contained in:
Matt Davis
2022-09-03 11:17:14 -04:00
committed by Oz N Tiram
parent d59ded7de5
commit 4d7fc1506e
+2
View File
@@ -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