]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix sqlite memory req
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Mar 2020 19:04:53 +0000 (15:04 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Mar 2020 19:04:53 +0000 (15:04 -0400)
this is only used by test/requirements.py right now for the
profiling tests but it was not returning the correct answer
during a regenerate operation.

Change-Id: Id9747b4fe562b8bea9b21c465b626b1b19e6956b

test/requirements.py

index d9fcd698c3364fd27fbfbb6f4c4f517a2f5e2698..669e0b7eb178743b76b7055deb7152260c27504a 100644 (file)
@@ -928,7 +928,9 @@ class DefaultRequirements(SuiteRequirements):
         )
 
     def _sqlite_memory_db(self, config):
-        return not self._sqlite_file_db(config)
+        return against(
+            config, "sqlite"
+        ) and not config.db.dialect._is_url_file_db(config.db.url)
 
     def _sqlite_json(self, config):
         if not against(config, "sqlite >= 3.9"):