From 4d7fc1506ece4f4acdb82253137fa06a7211df1b Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Sat, 3 Sep 2022 11:17:14 -0400 Subject: [PATCH] Have the tests cleanup Pipfile after itself. --- tests/integration/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 3ad6bd16..526843ba 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -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