diff --git a/newsfragments/3306.minor b/newsfragments/3306.minor new file mode 100644 index 000000000..e69de29bb diff --git a/src/allmydata/test/web/test_grid.py b/src/allmydata/test/web/test_grid.py index 6985c195c..8ef424441 100644 --- a/src/allmydata/test/web/test_grid.py +++ b/src/allmydata/test/web/test_grid.py @@ -6,7 +6,7 @@ from six.moves import StringIO from bs4 import BeautifulSoup -from nevow import rend +from twisted.web import resource from twisted.trial import unittest from allmydata import uri, dirnode from allmydata.util import base32 @@ -27,8 +27,9 @@ DIR_HTML_TAG = '' class CompletelyUnhandledError(Exception): pass -class ErrorBoom(rend.Page): - def beforeRender(self, ctx): + +class ErrorBoom(resource.Resource): + def render(self, req): raise CompletelyUnhandledError("whoops") class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMixin, unittest.TestCase):