# HG changeset patch # User Boris Feld # Date 2017-10-11 02:33:00 # Node ID d957d4475a644a3623b6d23f50156c4c164cc938 # Parent f3e4a5ad0d90012614235886858744a34cdc4516 configitems: register the test 'ui.ioerrors' config diff --git a/tests/test-rollback.t b/tests/test-rollback.t --- a/tests/test-rollback.t +++ b/tests/test-rollback.t @@ -220,10 +220,18 @@ I/O errors on stdio are handled properly > import errno > from mercurial.i18n import _ > from mercurial import ( + > registrar, > error, > ui as uimod, > ) > + > configtable = {} + > configitem = registrar.configitem(configtable) + > + > configitem('ui', 'ioerrors', + > default=list, + > ) + > > def pretxncommit(ui, repo, **kwargs): > ui.warn('warn during pretxncommit\n') > @@ -245,7 +253,7 @@ I/O errors on stdio are handled properly > return getattr(self._o, attr) > > def write(self, msg): - > errors = set(self._ui.configlist('ui', 'ioerrors', [])) + > errors = set(self._ui.configlist('ui', 'ioerrors')) > pretxncommit = msg == 'warn during pretxncommit\n' > pretxnclose = msg == 'warn during pretxnclose\n' > txnclose = msg == 'warn during txnclose\n'