diff 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
line wrap: on
line diff
--- a/test/test_mysql.py	Sun Dec 20 12:28:59 2020 -0500
+++ b/test/test_mysql.py	Sun Dec 20 15:43:07 2020 -0500
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 
-import unittest, os, shutil, time, imp
+import unittest, os, shutil, time
 
 import pytest
 from roundup.hyperdb import DatabaseError

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