From 53b4429525e6436fd7e0f98cc90bc7bb142ad6c5 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 13 Sep 2026 15:50:14 +0000 Subject: [PATCH] minor cleanups --- mmgen/cfg.py | 7 +++---- test/cmdtest_d/base.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mmgen/cfg.py b/mmgen/cfg.py index 56fb3c54..f89550b1 100755 --- a/mmgen/cfg.py +++ b/mmgen/cfg.py @@ -225,7 +225,6 @@ class Config(Lockable): ignore_daemon_version = False # display: - test_suite_enable_color = False # placeholder force_256_color = False scroll = False pager = False @@ -242,6 +241,7 @@ class Config(Lockable): autosign = False threaded_python = sys.version_info >= (3, 13) and not sys._is_gil_enabled() aes_backend = 'cryptography' + mnemonic_entry_modes = {} # regtest: bob = False @@ -271,6 +271,7 @@ class Config(Lockable): test_suite_deterministic = False test_suite_devnet_block_period = 0 test_suite_devtools = False + test_suite_enable_color = False # placeholder test_suite_exec_wrapper = False test_suite_hold_protect_disable = False test_suite_ignore_test_py_exception = False @@ -288,8 +289,6 @@ class Config(Lockable): skipping_deps = False test_datadir = os.path.join('test', 'tmp', 'data_dir') - mnemonic_entry_modes = {} - # external use: _opts = None _proto = None @@ -573,7 +572,7 @@ class Config(Lockable): self.network = 'testnet' if self.testnet else 'mainnet' from .term import init_term - init_term(self) # requires ‘hold_protect_disable’ (set from env) + init_term(self) from .fileutil import check_or_create_dir check_or_create_dir(self.data_dir_root) diff --git a/test/cmdtest_d/base.py b/test/cmdtest_d/base.py index fe32d049..6aabcd14 100755 --- a/test/cmdtest_d/base.py +++ b/test/cmdtest_d/base.py @@ -60,7 +60,7 @@ class CmdTestBase: self.coin = self.proto.coin.lower() self.fork = 'btc' if self.coin == 'bch' and not cfg.cashaddr else self.coin self.altcoin_pfx = '' if self.fork == 'btc' else f'-{self.proto.coin}' - self.testnet_opt = ['--testnet=1'] if cfg.testnet else [] + self.testnet_opt = ['--testnet=1'] if cfg.network == 'testnet' else [] if len(self.tmpdir_nums) == 1: self.tmpdir_num = self.tmpdir_nums[0] if self.tr: