Sqlite backup file fails with big module names
We have a custom module which have 20 optional dependencies. On the test suite all the modules are declared as extras. On total, this produces a legth of 288 digits which makes sqlite fail with the following error:
Traceback (most recent call last):
File "/home/pokoli/projectes/tryton/tryton/trytond/trytond/tests/test_tryton.py", line 303, in setUpClass
activate_module(modules, lang=cls.language)
File "/home/pokoli/projectes/tryton/tryton/trytond/trytond/tests/test_tryton.py", line 117, in activate_module
backup_db_cache(name)
File "/home/pokoli/projectes/tryton/tryton/trytond/trytond/tests/test_tryton.py", line 140, in backup_db_cache
_sqlite_copy(cache_file)
File "/home/pokoli/projectes/tryton/tryton/trytond/trytond/tests/test_tryton.py", line 166, in _sqlite_copy
sqlite.connect(file_) as conn2:
^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: unable to open database file
Doing some experiments I managed to find that the problem is raise when the name is bigger than 256.