Skip to content

Instantly share code, notes, and snippets.

View dpursehouse's full-sized avatar
:octocat:
🇬🇧🇪🇺

David Pursehouse dpursehouse

:octocat:
🇬🇧🇪🇺
View GitHub Profile
@dpursehouse
dpursehouse / test.py
Created July 19, 2013 13:50
Test script demonstrating crash when using custom authentication class in python-requests
import requests
class TestAuth(requests.auth.AuthBase):
def __call__(self, r):
pass
url = 'http://httpbin.org/'
r = requests.get(url, auth=TestAuth())
print r