Skip to content

Commit a6a03d6

Browse files
committed
test: close otks/session databases before replacing with redis db
Same fix as patch to close sqlite session db's when using anydbm session databases. Not sure if this left open files in the working database directory but...
1 parent 0cf8786 commit a6a03d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_redis_session.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def setUp(self):
5757
pw = ""
5858

5959
# redefine the session db's as redis.
60+
# close the existing session databases before opening new ones.
61+
self.db.Session.close()
62+
self.db.Otk.close()
63+
6064
self.db.config.SESSIONDB_BACKEND = "redis"
6165
self.db.config.SESSIONDB_REDIS_URL = \
6266
'redis://%slocalhost:6379/15?health_check_interval=2' % pw

0 commit comments

Comments
 (0)