Try to fix cross test pollution of Pipfile.

This commit is contained in:
Matt Davis
2022-09-03 13:48:24 -04:00
committed by Oz N Tiram
parent b26b4bfe2f
commit dbb0277866
+4
View File
@@ -343,6 +343,10 @@ class _PipenvInstance:
if pipfile:
p_path = os.sep.join([self.path, 'Pipfile'])
try:
os.remove(p_path)
except FileNotFoundError:
pass
with open(p_path, 'a'):
os.utime(p_path, None)