File 0003-Use-Response.status_int-instead-of-status_code-for-1.patch of Package python-WebOb
From ef2d5b2e8717b9a19e812de22cf30f301a446cc5 Mon Sep 17 00:00:00 2001
From: Martin Vidner <mvidner@suse.cz>
Date: Fri, 4 May 2012 15:26:08 +0200
Subject: [PATCH 3/4] Use Response.status_int instead of status_code for 1.1.1
In the last stable release, status_code produces a deprecation
warning and thus fauls the test.
---
tests/test_exc.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/test_exc.py b/tests/test_exc.py
index 2518c23..ea23d8e 100644
--- a/tests/test_exc.py
+++ b/tests/test_exc.py
@@ -279,7 +279,7 @@ def test_HTTPOk_head_of_proxied_head():
# Copy the response like a proxy server would.
# Copying an empty body has set content_length
# so copy the headers only afterwards.
- resp2 = status_map[resp1.status_code](request=req)
+ resp2 = status_map[resp1.status_int](request=req)
resp2.body = resp1.body
resp2.headerlist = resp1.headerlist
verify_response(resp2, "copied response")
--
1.7.7