changeset 6432:97a45bfa62a8

issue2551142 - Import of retired node ... fails with unique constraint CI failed on all backends except sqlite and anydbm. Fix memorydb. Treat it like anydbm.
author John Rouillard <rouilj@ieee.org>
date Mon, 07 Jun 2021 10:50:45 -0400
parents ada1edcc9132
children c1d3fbcdbfbd
files test/db_test_base.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/db_test_base.py	Mon Jun 07 09:58:39 2021 -0400
+++ b/test/db_test_base.py	Mon Jun 07 10:50:45 2021 -0400
@@ -2899,7 +2899,7 @@
                   self.db.setid(cn, str(maxid+1))
                   klass.import_journals(journals[cn])
 
-            if self.db.dbtype != 'anydbm':
+            if self.db.dbtype not in ['anydbm', 'memorydb']:
                 # no logs or fixup needed under anydbm
                 self.assertEqual(2, len(self._caplog.record_tuples))
                 self.assertIn('Attempting to handle import exception for id 7:',

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