minor cleanups

This commit is contained in:
The MMGen Project 2026-09-13 15:50:14 +00:00
commit 53b4429525
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 4 additions and 5 deletions

View file

@ -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)

View file

@ -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: