Skip to content

Commit 9977df3

Browse files
committed
fix: Fix pyramid test under py2
1 parent 05c1844 commit 9977df3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/integrations/pyramid/test_pyramid.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,7 @@ def tween(request):
336336
except:
337337
mroute = request.matched_route
338338
if mroute and mroute.name in ("index",):
339-
status_code = 400
340-
return Response(
341-
text=json.dumps(dict()),
342-
status_code=status_code,
343-
content_type="application/json",
344-
)
339+
return Response("bad request", status_code=400)
345340
return response
346341

347342
return tween

0 commit comments

Comments
 (0)