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:
32941fd
)
fix test for python3
author
Kenneth Reitz
<me@kennethreitz.com>
Fri, 8 Jun 2012 02:21:06 +0000
(22:21 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Fri, 8 Jun 2012 02:21:06 +0000
(22:21 -0400)
tests/test_requests.py
patch
|
blob
|
history
diff --git
a/tests/test_requests.py
b/tests/test_requests.py
index 50bc824d42c2b05d476e174dbaddd26fcb2883b7..00a76082be9d046753753667a31448773231fd9d 100755
(executable)
--- a/
tests/test_requests.py
+++ b/
tests/test_requests.py
@@
-466,7
+466,7
@@
class RequestsTestSuite(TestSetup, TestBaseMixin, unittest.TestCase):
def test_file_post_data(self):
- filecontent = "fooaowpeufbarasjhf"
+ filecontent =
b
"fooaowpeufbarasjhf"
testfile = tempfile.NamedTemporaryFile()
testfile.write(filecontent)
testfile.flush()
@@
-482,7
+482,7
@@
class RequestsTestSuite(TestSetup, TestBaseMixin, unittest.TestCase):
rbody = json.loads(r.text)
assert rbody.get('form') in (None, {})
- self.assertEqual(rbody.get('data'), filecontent)
+ self.assertEqual(rbody.get('data'), filecontent
.decode('ascii')
)
def test_urlencoded_post_querystring(self):