Skip to content

Commit 5217431

Browse files
committed
Fixes for mysql and postgresql primary db.
1 parent 1d962bd commit 5217431

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/rest_common.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,12 @@ def testRestRateLimit(self):
644644
# retry loop. Not sure why but I can force it
645645
# through the loop by setting the internal _db_type
646646
# setting once the db is created by the previous command.
647-
self.db.Otk._db_type = whichdb("%s/%s"%(self.db.Otk.dir, self.db.Otk.name))
647+
try:
648+
self.db.Otk._db_type = whichdb("%s/%s"%(self.db.Otk.dir, self.db.Otk.name))
649+
except AttributeError:
650+
# if dir attribute doesn't exist the primary db is not
651+
# sqlite or anydbm. So don't need to exercise code.
652+
pass
648653

649654
print("Now realtime start:", datetime.utcnow())
650655
# don't set an accept header; json should be the default

0 commit comments

Comments
 (0)