__pkginfo__.py
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Fri, 26 Oct 2018 17:00:05 +0200
changeset 12356 ed486562ba7e
parent 11382 dab704a0e4b1
permissions lrwxrwxrwx
Make test database cache lookup concurrent has_cache() is used to dertermine if the template database already exists or not. When running tests accross multiple process, has_cache() wasn't aware of databases created by other processes because it used a cache to generate the cache... Since the discovering discover_cached_db() time is quite reasonable (it's just about listing file in a directory), let re-generate the cache on cache miss.

cubicweb/__pkginfo__.py