diff -r 57875cf423c9 -r 2372284d9457 tests/hgweberror.py --- a/tests/hgweberror.py Sat Oct 05 10:29:34 2019 -0400 +++ b/tests/hgweberror.py Sun Oct 06 09:45:02 2019 -0400 @@ -2,9 +2,8 @@ from __future__ import absolute_import -from mercurial.hgweb import ( - webcommands, -) +from mercurial.hgweb import webcommands + def raiseerror(web): '''Dummy web command that raises an uncaught Exception.''' @@ -19,6 +18,7 @@ raise AttributeError('I am an uncaught error!') + def extsetup(ui): setattr(webcommands, 'raiseerror', raiseerror) webcommands.__all__.append(b'raiseerror')