comparison test/test_mailgw.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 ca0915457761
children 14c9284a8bad
comparison
equal deleted inserted replaced
6299:fd0bdcbc68e4 6300:778a9f455067
11 11
12 # TODO: test bcc 12 # TODO: test bcc
13 13
14 import email 14 import email
15 from . import gpgmelib 15 from . import gpgmelib
16 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, time, io 16 import unittest, tempfile, os, shutil, errno, sys, difflib, time, io
17 17
18 import pytest 18 import pytest
19 19
20 try: 20 try:
21 import gpg, gpg.core 21 import gpg, gpg.core

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