mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
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:
+9
-9
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user