comparison test/test_mysql.py @ 6300:778a9f455067

Remove old code import imp, old style trackers db/backend_name Module imp is depricated. Removing that means rewriting old style trackers that used imp to load schema and config files. So removed code supporting old style trackers that have been depricated since 2008. Added test to verify that existence of dbinit.py triggers alert that tracker is old style and not supported. Also remove support for depricated db/backend_name file for specifying backend. It is now specified in config.ini's [rdbms] backend. It looks like not specifying an [rdbms] backend key in config.ini throws a config error. However I left in a check and throw an exception with details if there is an empty backend value. But I don't think it will ever be triggered. Removed unused import of imp in a number of test files.
author John Rouillard <rouilj@ieee.org>
date Sun, 20 Dec 2020 15:43:07 -0500
parents 6b4857686365
children 39189dd94f2c
comparison
equal deleted inserted replaced
6299:fd0bdcbc68e4 6300:778a9f455067
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 17
18 import unittest, os, shutil, time, imp 18 import unittest, os, shutil, time
19 19
20 import pytest 20 import pytest
21 from roundup.hyperdb import DatabaseError 21 from roundup.hyperdb import DatabaseError
22 from roundup.backends import get_backend, have_backend 22 from roundup.backends import get_backend, have_backend
23 23

Roundup Issue Tracker: http://roundup-tracker.org/