]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
write db_idents file. check for it, delete it too
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Oct 2025 22:17:59 +0000 (18:17 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Oct 2025 22:17:59 +0000 (18:17 -0400)
Change-Id: I75fee60d69ebc51d66a688f292c374db5f4753f3

noxfile.py

index 8f8731cfdc12cc7ecf20ea991ec2ce2df4e058fa..cbada644c2663523f61fddd9746a68363585ccb0 100644 (file)
@@ -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")