Browse Source

minor fix and cleanup

The MMGen Project 2 years ago
parent
commit
eacf3ae802
2 changed files with 3 additions and 3 deletions
  1. 2 2
      mmgen/tw/view.py
  2. 1 1
      test/test_py_d/ts_regtest.py

+ 2 - 2
mmgen/tw/view.py

@@ -107,7 +107,7 @@ class TwView(MMGenObject,metaclass=AsyncInit):
 		--columns or MMGEN_COLUMNS value ({}) is too small to display the {}.
 		Minimum value for this configuration: {}
 	"""
-	twid_errmsg = """
+	twidth_errmsg = """
 		Screen is too narrow to display the {}
 		Please resize your screen to at least {} characters and hit any key:
 	"""
@@ -218,7 +218,7 @@ class TwView(MMGenObject,metaclass=AsyncInit):
 				if g.columns:
 					die(1,'\n'+fmt(self.tcols_errmsg.format(g.columns,self.desc,min_cols),indent='  '))
 				else:
-					get_char_raw('\n'+fmt(self.twid_errmsg.format(self.desc,min_cols),append=''))
+					get_char_raw('\n'+fmt(self.twidth_errmsg.format(self.desc,min_cols),append=''))
 			else:
 				return min_cols
 

+ 1 - 1
test/test_py_d/ts_regtest.py

@@ -164,7 +164,7 @@ class TestSuiteRegtest(TestSuiteBase,TestSuiteShared):
 		('subgroup.txhist',     ['main']),
 		('subgroup.label',      ['main']),
 		('subgroup.view',       ['label']),
-		('subgroup.auto_chg',   ['view']),
+		('subgroup.auto_chg',   ['label']),
 		('stop',                'stopping regtest daemon'),
 	)
 	cmd_subgroups = {