Fixed some typos (#3892)

* Fixed some typos
This commit is contained in:
Victor Pfautz
2017-02-27 17:25:10 +01:00
committed by Cory Benfield
parent 45a2977e1b
commit 2aaf6ac038
2 changed files with 2 additions and 2 deletions

View File

@@ -859,7 +859,7 @@ def rewind_body(prepared_request):
try:
body_seek(prepared_request._body_position)
except (IOError, OSError):
raise UnrewindableBodyError("An error occured when rewinding request "
raise UnrewindableBodyError("An error occurred when rewinding request "
"body for redirect.")
else:
raise UnrewindableBodyError("Unable to rewind request body for redirect.")

View File

@@ -1560,7 +1560,7 @@ class TestRequests:
with pytest.raises(UnrewindableBodyError) as e:
requests.utils.rewind_body(prep)
assert 'error occured when rewinding request body' in str(e)
assert 'error occurred when rewinding request body' in str(e)
def test_rewind_body_failed_tell(self):
class BadFileObj: