Skip to content
Myr

test fix

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 8836c4b · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:test_requests.py+2 added-1 removed
8 unmodified lines
9import unittest1011import requests12import envoy13from urllib2 import HTTPError1415try:16 import omnijson as json17except ImportError:
221 unmodified lines
239240241 def test_status_raising(self):242 r = requests.get(httpbin('status', '404'))242 self.assertRaises(requests.HTTPError, r.raise_for_status)243 self.assertRaises(HTTPError, r.raise_for_status)244245 r = requests.get(httpbin('status', '200'))246 self.assertFalse(r.error)247 r.raise_for_status()
287 unmodified lines