summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorContinuousFunction <evolutionace@gmail.com>2014-12-15 13:41:10 -0500
committerContinuousFunction <evolutionace@gmail.com>2014-12-15 13:41:10 -0500
commit4c61fef13f53db220f95032b72e6e374970bf272 (patch)
tree290db8bfd65984fcc0328207e82eea515e41fc80
parent39090cfba65cd056258dadce35e53dfeddd4568c (diff)
downloadpython-requests-4c61fef13f53db220f95032b72e6e374970bf272.tar.gz
Uncommented test in test_requests.py
Uncommented test_sesion_pickling in test_requests.py and ran the file to make sure the test passes.
-rwxr-xr-xtest_requests.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test_requests.py b/test_requests.py
index 51d071e5..34348d3e 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):
"""