From b63aa3a1afe9e5af8ce44b0bfa39ebecdb40ebb4 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 5 Sep 2013 18:02:37 +0100 Subject: [PATCH] Sun May 13 08:45:12 BST 2012 Brian Warner * test_web: fix use of headers= that's been wrong for a while --- src/allmydata/test/test_web.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 1357f3ae..df4bb00f 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -5182,7 +5182,7 @@ class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMi self.shouldHTTPError("GET errorboom_html", 500, "Internal Server Error", None, self.GET, "ERRORBOOM", - headers={"accept": ["*/*"]})) + headers={"accept": "*/*"})) def _internal_error_html1(body): self.failUnlessIn("", "expected HTML, not '%s'" % body) d.addCallback(_internal_error_html1) @@ -5191,7 +5191,7 @@ class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMi self.shouldHTTPError("GET errorboom_text", 500, "Internal Server Error", None, self.GET, "ERRORBOOM", - headers={"accept": ["text/plain"]})) + headers={"accept": "text/plain"})) def _internal_error_text2(body): self.failIfIn("", body) self.failUnless(body.startswith("Traceback "), body) @@ -5202,7 +5202,7 @@ class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMi self.shouldHTTPError("GET errorboom_text", 500, "Internal Server Error", None, self.GET, "ERRORBOOM", - headers={"accept": [CLI_accepts]})) + headers={"accept": CLI_accepts})) def _internal_error_text3(body): self.failIfIn("", body) self.failUnless(body.startswith("Traceback "), body) -- 2.45.2