From 1577c1d15be84ad9c72da6f7ffae21a312977544 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 15 Oct 2025 18:17:59 -0400 Subject: [PATCH] write db_idents file. check for it, delete it too Change-Id: I75fee60d69ebc51d66a688f292c374db5f4753f3 --- noxfile.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index 8f8731cfdc..cbada644c2 100644 --- a/noxfile.py +++ b/noxfile.py @@ -293,6 +293,9 @@ def _tests( junitfile = f"junit-{database}-{cext}-{has_greenlet}.xml" cmd.extend(["--junitxml", junitfile]) + if database in ["oracle", "mssql", "sqlite_file"]: + cmd.extend(["--write-idents", "db_idents.txt"]) + cmd.extend(posargs) if opts.dry_run: @@ -303,8 +306,10 @@ def _tests( session.run(*cmd) finally: # Run cleanup for oracle/mssql - if database in ["oracle", "mssql"]: - session.run("python", "reap_dbs.py", "db_idents.txt") + if database in ["oracle", "mssql", "sqlite_file"]: + if os.path.exists("db_idents.txt"): + session.run("python", "reap_dbs.py", "db_idents.txt") + os.unlink("db_idents.txt") @nox.session(name="pep484") -- 2.47.3