Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requests.Session.prepare_request require requests > 2.0 #32

Open
k4ml opened this issue Apr 13, 2015 · 0 comments
Open

requests.Session.prepare_request require requests > 2.0 #32

k4ml opened this issue Apr 13, 2015 · 0 comments

Comments

@k4ml
Copy link
Contributor

k4ml commented Apr 13, 2015

The latest version - https://github.com/patrys/httmock/blob/master/httmock.py#L109

When running with requests-1.2.0, got the following:-

Traceback (most recent call last):
  File "/home/kamal/clean/marimore_m7msgezsms/branches/219-private-routing-ordered/src/m7msgezsms/apps/ezsms_api_test/tests/tests_call_api.py", line 376, in test_valid_update_call_status
    with httmock.HTTMock(_get_response):
  File "/home/kamal/clean/marimore_m7msgezsms/branches/219-private-routing-ordered/eggs/httmock-1.2.3-py2.7.egg/httmock.py", line 109, in __enter__
    self._real_session_prepare_request = requests.Session.prepare_request
AttributeError: type object 'Session' has no attribute 'prepare_request'

setup.py should be updated to require requests>=2.0.

Reference - https://github.com/kennethreitz/requests/blob/master/HISTORY.rst#200-2013-09-24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant