From: Mike Bayer Date: Thu, 16 Oct 2025 00:55:07 +0000 (-0400) Subject: delete previous coverage file X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80576beab2918c1ac9e9e7e6fbc1e1a6cd5df237;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git delete previous coverage file Change-Id: Id051257a2012bc0b40bbf0a89b80f540c9a1e5a1 --- diff --git a/noxfile.py b/noxfile.py index 8ec50f082f..1fe4d524bb 100644 --- a/noxfile.py +++ b/noxfile.py @@ -251,10 +251,13 @@ def _tests( assert not platform_intensive has_greenlet = "greenlet" if greenlet else "nogreenlet" - session.env["COVERAGE_FILE"] = f".coverage.{file_suffix}" + session.env["COVERAGE_FILE"] = coverage_file = ( + f".coverage.{file_suffix}" + ) + if os.path.exists(coverage_file): + os.unlink(coverage_file) cmd.extend( [ - "--cov-reset", "--cov=sqlalchemy", "--cov-append", "--cov-report", @@ -263,6 +266,7 @@ def _tests( f"xml:coverage-{file_suffix}.xml", ], ) + session.log(f"Will store coverage data in {coverage_file}") includes_excludes["k"].append("not aaa_profiling") cmd.extend(os.environ.get("TOX_WORKERS", "-n4").split())