changeset 7914:ecf0368a05da

issue2551334 - get test suite running under windows Add a commit() to finish a transaction in test suite so close() under windows can close filehandles to the database.
author John Rouillard <rouilj@ieee.org>
date Sun, 28 Apr 2024 09:19:31 -0400
parents 6102ae426390
children 82093eb944d6
files test/db_test_base.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/db_test_base.py	Sun Apr 28 09:17:54 2024 -0400
+++ b/test/db_test_base.py	Sun Apr 28 09:19:31 2024 -0400
@@ -411,6 +411,7 @@
 
         # test set & retrieve (this time for file contents)
         nid = self.db.file.create(content=ustr)
+        self.db.commit()
         self.assertEqual(self.db.file.get(nid, 'content'), ustr)
         self.assertEqual(self.db.file.get(nid, 'binary_content'), s2b(ustr))
 

Roundup Issue Tracker: http://roundup-tracker.org/