Clean up filesize unittest test file in test tear down (#42143)
This commit is contained in:
1 parent
bb1b210047
commit
c1ebad8c97
1 file changed
+1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user