From 86beb56e54951eb1f7decf57580464cff8175bf5 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Tue, 3 Oct 2023 14:27:56 +0000 Subject: [PATCH] test.py: import cleanups --- test/test.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/test/test.py b/test/test.py index 81ef369a..8060bfec 100755 --- a/test/test.py +++ b/test/test.py @@ -88,9 +88,23 @@ else: import include.test_init repo_root = include.test_init.repo_root -from mmgen.common import * +from mmgen.cfg import Config,gc +from mmgen.color import yellow,green,cyan +from mmgen.util import Msg,bmsg,die,suf,make_timestr -from test.include.common import set_globals,test_py_log_fn,test_py_error_fn +from test.include.common import ( + set_globals, + test_py_log_fn, + test_py_error_fn, + mk_tmpdir, + cleandir, + iqmsg, + omsg, + omsg_r, + ok, + start_test_daemons, + stop_test_daemons, +) try: os.unlink(os.path.join(repo_root,test_py_error_fn)) @@ -184,7 +198,7 @@ cfg = Config(opts_data=opts_data) set_globals(cfg) -from test.test_py_d.common import * # this must be loaded after set_globals() +from test.test_py_d.common import get_file_with_ext # this must be loaded after set_globals() type(cfg)._reset_ok += ( 'no_daemon_autostart',