From: Mike Bayer Date: Wed, 15 Oct 2025 22:17:59 +0000 (-0400) Subject: write db_idents file. check for it, delete it too X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1577c1d15be84ad9c72da6f7ffae21a312977544;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git write db_idents file. check for it, delete it too Change-Id: I75fee60d69ebc51d66a688f292c374db5f4753f3 --- 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")