Uncommented test in test_requests.py

Uncommented test_sesion_pickling in test_requests.py and ran the file to
make sure the test passes.
This commit is contained in:
ContinuousFunction
2014-12-15 13:41:10 -05:00
parent 39090cfba6
commit 4c61fef13f
+9 -9
View File
@@ -825,15 +825,15 @@ class RequestsTestCase(unittest.TestCase):
assert str(error) == 'message'
assert error.response == response
## def test_session_pickling(self):
## r = requests.Request('GET', httpbin('get'))
## s = requests.Session()
##
## s = pickle.loads(pickle.dumps(s))
## s.proxies = getproxies()
##
## r = s.send(r.prepare())
## assert r.status_code == 200
def test_session_pickling(self):
r = requests.Request('GET', httpbin('get'))
s = requests.Session()
s = pickle.loads(pickle.dumps(s))
s.proxies = getproxies()
r = s.send(r.prepare())
assert r.status_code == 200
def test_fixes_1329(self):
"""