Clean up filesize unittest test file in test tear down (#42143)

This commit is contained in:
CurrentThread 2020-10-21 13:47:30 +02:00 committed by GitHub
parent bb1b210047
commit c1ebad8c97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)