diff test/db_test_base.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 a635a60ffb84
children 6a6b4651be1f
line wrap: on
line diff
--- a/test/db_test_base.py	Sun Dec 20 12:28:59 2020 -0500
+++ b/test/db_test_base.py	Sun Dec 20 15:43:07 2020 -0500
@@ -16,7 +16,7 @@
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 
 from __future__ import print_function
-import unittest, os, shutil, errno, imp, sys, time, pprint, os.path
+import unittest, os, shutil, errno, sys, time, pprint, os.path
 
 try:
     from base64 import encodebytes as base64_encode  # python3 only

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