From: ContinuousFunction Date: Mon, 15 Dec 2014 18:41:10 +0000 (-0500) Subject: Uncommented test in test_requests.py X-Git-Tag: v2.5.1~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c61fef13f53db220f95032b72e6e374970bf272;p=services%2Fpython-requests.git Uncommented test in test_requests.py Uncommented test_sesion_pickling in test_requests.py and ran the file to make sure the test passes. --- diff --git a/test_requests.py b/test_requests.py index 51d071e..34348d3 100755 --- a/test_requests.py +++ b/test_requests.py @@ -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): """