mirror of
https://github.com/python/cpython.git
synced 2025-10-23 15:12:02 +00:00
gh-93353: regrtest checks for leaked temporary files (#93776)
When running tests with -jN, create a temporary directory per process and mark a test as "environment changed" if a test leaks a temporary file or directory.
This commit is contained in:
parent
b083450f88
commit
e566ce5496
3 changed files with 55 additions and 7 deletions
|
@ -80,6 +80,11 @@ class EnvChanged(Failed):
|
|||
def __str__(self) -> str:
|
||||
return f"{self.name} failed (env changed)"
|
||||
|
||||
# Convert Passed to EnvChanged
|
||||
@staticmethod
|
||||
def from_passed(other):
|
||||
return EnvChanged(other.name, other.duration_sec, other.xml_data)
|
||||
|
||||
|
||||
class RefLeak(Failed):
|
||||
def __str__(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue