projects
/
platform
/
upstream
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20b10ae
)
Fixing test to ensure it passes with python 3.
author
Vinod Chandru
<vinod.chandru@gmail.com>
Thu, 10 Jan 2013 04:10:54 +0000
(20:10 -0800)
committer
Vinod Chandru
<vinod.chandru@gmail.com>
Thu, 10 Jan 2013 04:10:54 +0000
(20:10 -0800)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index fb48323788f8cc70ba92a8dbc007075c4f3950fd..18a51bb2c0db2b04447d28e3ac87fa9218621783 100644
(file)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-262,7
+262,7
@@
class RequestsTestCase(unittest.TestCase):
'file2': ('test_requests', open(__file__, 'rb'),
'text/py-content-type')})
self.assertEqual(r.status_code, 200)
- self.assertTrue("text/py-content-type" in r.request.body)
+ self.assertTrue(
b
"text/py-content-type" in r.request.body)
if __name__ == '__main__':