cubicweb/test/data/scripts/script2.py
author Philippe Pepiot <ph@itsalwaysdns.eu>
Mon, 30 Mar 2020 15:46:12 +0200
changeset 12963 dd9e98b25213
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[server] dynamically close idle database connections When pool hasn't been empty for `idle_timeout` time, start closing connections.

from os.path import join
assert __file__.endswith(join('scripts', 'script2.py')), __file__
assert '__main__' == __name__, __name__
assert ['-v'] == __args__, __args__