Clean up filesize unittest test file in test tear down (#42143)
This commit is contained in:
parent
bb1b210047
commit
c1ebad8c97
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ def create_file(path):
|
|||
@pytest.fixture(autouse=True)
|
||||
def remove_file():
|
||||
"""Remove test file."""
|
||||
yield
|
||||
if os.path.isfile(TEST_FILE):
|
||||
os.remove(TEST_FILE)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue