Skip to content

Commit

Permalink
Use Response.status_int instead of status_code for 1.1.1
Browse files Browse the repository at this point in the history
In the last stable release, status_code produces a deprecation
warning and thus fauls the test.
  • Loading branch information
mvidner committed May 4, 2012
1 parent 1c04de5 commit 98f1ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_exc.py
Expand Up @@ -237,7 +237,7 @@ def verify_response(resp, description):
# 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")
Expand Down

0 comments on commit 98f1ea3

Please sign in to comment.