From edd4cab42bf8ceefeae7c6462681540ae65ed684 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 5 May 2020 11:51:28 -0400 Subject: [PATCH] Replace nevow with twisted.web in test.web.test_grid --- newsfragments/3306.minor | 0 src/allmydata/test/web/test_grid.py | 7 ++++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 newsfragments/3306.minor 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):